From ca65c465b9a7cc2e17dc23ca7e3441a944f5ed52 Mon Sep 17 00:00:00 2001 From: YokiiroBW Date: Mon, 27 Jul 2026 02:37:36 +0800 Subject: [PATCH] refactor(chat): drop the speaker name from the message bubble The bubble header repeated what the avatar and the side of the bubble already say. Removing it leaves the header holding only the generating indicator, so it is rendered only while a reply is streaming. The name moves into the avatar as a clipped label rather than disappearing: the avatar's glyph is aria-hidden, so without it a screen reader would announce nothing at all for the speaker. Verified against the real stylesheet: avatar and bubble tops differ by 0px for both roles, the glyph stays centred in a 32px avatar, the label measures 1x1, and the bubble no longer contains the name. Co-Authored-By: Claude Opus 5 --- src/features/chat/ChatPanel.tsx | 40 ++++++++++++++++++++------------- 1 file changed, 24 insertions(+), 16 deletions(-) diff --git a/src/features/chat/ChatPanel.tsx b/src/features/chat/ChatPanel.tsx index 00e26cb..09ffc3b 100644 --- a/src/features/chat/ChatPanel.tsx +++ b/src/features/chat/ChatPanel.tsx @@ -823,25 +823,33 @@ export function ChatPanel({ fixedSlot }: ChatPanelProps) { className={`chat-message-row ${message.role}${message.error ? " failed" : ""}`} key={message.id} > -