diff --git a/packages/webui/src/components/ui/tabs.tsx b/packages/webui/src/components/ui/tabs.tsx index 9d758ee9..92f88950 100644 --- a/packages/webui/src/components/ui/tabs.tsx +++ b/packages/webui/src/components/ui/tabs.tsx @@ -1,7 +1,6 @@ -// Tabs — a horizontal tab bar with an Apple-HIG sliding indicator. Shares the -// spring-pill idiom of the debug page's segmented control but scaled up for -// top-level section switching, with full roving-tabindex keyboard support -// (←/→/Home/End). Generic over a string union of tab ids. +// Tabs — a horizontal section-navigation bar with a sliding underline and full +// roving-tabindex keyboard support (←/→/Home/End). Generic over a string union +// of tab ids. import { useCallback, useEffect, @@ -104,14 +103,14 @@ export function ScrollableTabList({ }, [activeValue, revealActive, updateEdges]); return ( -
+
({ value, onChange, items, className, ...r activeValue={value} role="tablist" aria-label={rest['aria-label']} - className={cn('items-center gap-1', className)} + className={cn('w-full items-stretch gap-1 border-b border-border/70', className)} > {items.map((it, i) => { const active = it.value === value; @@ -193,16 +192,18 @@ export function Tabs({ value, onChange, items, className, ...r else if (e.key === 'End') { e.preventDefault(); move(i, 'end'); } }} className={cn( - 'relative z-10 inline-flex shrink-0 items-center gap-2 rounded-xl px-3.5 py-2 text-sm font-medium outline-none transition-colors', + 'relative z-10 inline-flex min-h-11 shrink-0 items-center gap-2 whitespace-nowrap rounded-t-lg px-3 py-2 text-sm font-medium outline-none transition-colors', 'focus-visible:ring-[3px] focus-visible:ring-ring/40', - active ? 'text-foreground' : 'text-muted-foreground hover:text-foreground', + active + ? 'bg-primary/[0.055] text-primary' + : 'text-muted-foreground hover:bg-muted/55 hover:text-foreground', )} > {active && ( )} {it.icon}