From 739b353a892a67bc9e2d130c85fdb3cca546e9a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E5=91=98=E9=98=BF=E6=B1=9F=28Relakkes?= =?UTF-8?q?=29?= Date: Thu, 9 Apr 2026 22:04:05 +0800 Subject: [PATCH] fix(desktop): show message Copy button on hover at bottom-right Move the Copy button from always-visible below messages to the bottom-right side of each message bubble, only appearing on hover. Reduces visual clutter in chat conversations. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../src/components/chat/AssistantMessage.tsx | 14 +++++---- .../src/components/chat/MessageActionBar.tsx | 6 +--- desktop/src/components/chat/UserMessage.tsx | 30 +++++++++---------- 3 files changed, 24 insertions(+), 26 deletions(-) diff --git a/desktop/src/components/chat/AssistantMessage.tsx b/desktop/src/components/chat/AssistantMessage.tsx index 835fd7c0..ef3cfc75 100644 --- a/desktop/src/components/chat/AssistantMessage.tsx +++ b/desktop/src/components/chat/AssistantMessage.tsx @@ -8,12 +8,14 @@ type Props = { export function AssistantMessage({ content, isStreaming }: Props) { return ( -
-
- - {isStreaming && ( - - )} +
+
+
+ + {isStreaming && ( + + )} +
+
0 return ( -
-
+
+
{attachments && attachments.length > 0 && ( )} {hasText && ( - <> -
- {content} -
- - +
+ {content} +
)}
+ + {hasText && ( + + )}
) }