From a4e25db0f765c9946e51ad4a457cf8514c2e5256 Mon Sep 17 00:00:00 2001 From: yiling Date: Sat, 4 Jul 2026 11:16:35 +0800 Subject: [PATCH] style(webui): emphasize active compare pane topbar The active version's topbar now uses an inverted bar (bg-foreground / text-background) so it reads as black background with white text in the light theme, while the inactive pane keeps the card background with muted text. Filename/version text color now differs between active and inactive panes. --- .../compare/compare-pane-topbar.tsx | 35 +++++++++++++------ .../components/compare/compare-viewer.tsx | 4 +-- 2 files changed, 27 insertions(+), 12 deletions(-) diff --git a/packages/webui/components/compare/compare-pane-topbar.tsx b/packages/webui/components/compare/compare-pane-topbar.tsx index e0baa547..e6d7544c 100644 --- a/packages/webui/components/compare/compare-pane-topbar.tsx +++ b/packages/webui/components/compare/compare-pane-topbar.tsx @@ -40,12 +40,15 @@ export function ComparePaneTopbar({ onSwitchVersion, onExit, }: ComparePaneTopbarProps) { + const iconButtonClass = cn( + 'flex-shrink-0 rounded p-1 transition-colors', + isActive + ? 'text-background/70 hover:bg-background/20 hover:text-background' + : 'text-muted-foreground hover:bg-accent hover:text-foreground', + ) + const exitButton = ( - ) @@ -53,11 +56,21 @@ export function ComparePaneTopbar({ const label = (