From a0abd6959c79f90c30f7f822c7a1cbb6c9fd46d3 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 1 Feb 2026 17:18:11 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E8=BE=93=E5=85=A5=E6=A1=86=E5=86=85?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=9B=BE=E7=89=87=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- components/canvas/CanvasChatPanel.tsx | 56 ++++++++++++++++----------- 1 file changed, 34 insertions(+), 22 deletions(-) diff --git a/components/canvas/CanvasChatPanel.tsx b/components/canvas/CanvasChatPanel.tsx index e3fe6250f..81f67e8dc 100644 --- a/components/canvas/CanvasChatPanel.tsx +++ b/components/canvas/CanvasChatPanel.tsx @@ -879,28 +879,37 @@ export function CanvasChatPanel({ chatId, initialMessages = [], onClose, onOpenF {/* 底部输入区域 - Redesigned */}
- {/* 附件预览 */} - {attachments.length > 0 && ( -
- {attachments.map((att, index) => ( -
- - -
- ))} -
- )} -
+ {/* 附件标签 - 显示在输入框内部顶部 */} + {attachments.length > 0 && ( +
+ {attachments.map((att, index) => ( +
+ {/* 小缩略图 */} + + {/* 图片名称 */} + + {att.name || 'Image'} + + {/* 删除按钮 */} + +
+ ))} +
+ )} +