From 60a67a9f3b3bf33a42ae0d2071b2979afa9d9144 Mon Sep 17 00:00:00 2001 From: klopez4212 Date: Sat, 4 Jul 2026 10:17:47 +0100 Subject: [PATCH] Keep sidebar shimmer titles readable and truncating Two fixes to the working-chat shimmer in the sidebar: - New buzz-shimmer-accent variant: the title keeps its normal text color and a primary-colored band sweeps across it, instead of the default treatment that dims the base text to make the highlight read. - The shimmer class now lives on the truncating span itself (the MarkerLabel pattern), so long names ellipsize normally. The archive slot is zero-width until hover/focus, giving the title the full row and only shrinking to make room for the button on demand. Co-Authored-By: Claude Fable 5 --- desktop/src/features/chats/ui/ChatListItem.tsx | 18 ++++++++++++++---- .../src/shared/styles/globals/animations.css | 12 ++++++++++++ 2 files changed, 26 insertions(+), 4 deletions(-) diff --git a/desktop/src/features/chats/ui/ChatListItem.tsx b/desktop/src/features/chats/ui/ChatListItem.tsx index 9e4c96251..a89cbd1b3 100644 --- a/desktop/src/features/chats/ui/ChatListItem.tsx +++ b/desktop/src/features/chats/ui/ChatListItem.tsx @@ -10,7 +10,6 @@ import { ContextMenuSeparator, ContextMenuTrigger, } from "@/shared/ui/context-menu"; -import { Shimmer } from "@/shared/ui/Shimmer"; export function ChatListHeader() { return ( @@ -83,8 +82,17 @@ export function ChatListItem({ onClick={() => onSelectChat(chat.id)} type="button" > - - {isAgentRunning ? {name} : name} + + {name} {isPinned ? ( {onArchiveChat ? ( -
+ // Zero-width until hover/focus so the title gets the full row; the + // slot expands to make room for the archive button on demand. +