From 72b1f8f1cf075008e8086f140ae98fd05df94826 Mon Sep 17 00:00:00 2001 From: 134 Date: Thu, 9 Jul 2026 14:39:38 +0800 Subject: [PATCH] fix: keep image attachment add button visible --- components/canvas/CanvasChatPanel.tsx | 62 +++++++++++++++------------ 1 file changed, 35 insertions(+), 27 deletions(-) diff --git a/components/canvas/CanvasChatPanel.tsx b/components/canvas/CanvasChatPanel.tsx index a95e017c3..d9030fc5a 100644 --- a/components/canvas/CanvasChatPanel.tsx +++ b/components/canvas/CanvasChatPanel.tsx @@ -15265,33 +15265,41 @@ export function CanvasChatPanel({ ) : null} {!isWorkspacePresentation && !isDetailGenerationMode && !isVideoWorkspace && activeComposerMode === "image" ? ( - +
+ {attachments.map((attachment, index) => ( +
+ {attachment.name { + if (event.currentTarget.src !== attachment.url) { + event.currentTarget.src = attachment.url; + } + }} + /> +
+ ))} + +
) : null} {isClawdMode && clawdTableFiles.length > 0 ? (