From 08ec771234d32d73fab32f5cabb49bd270a7c702 Mon Sep 17 00:00:00 2001 From: DrSmoothl <1787882683@qq.com> Date: Thu, 16 Jul 2026 22:35:32 +0800 Subject: [PATCH] fix(webui): restore clear responsive debug tabs Replace the floating capsule treatment with a compact section-navigation rail that combines primary text, a restrained active tint, and a short underline for an unambiguous selected state. Constrain the shared horizontal viewport so narrow screens scroll only inside the tab strip rather than widening the page. Existing keyboard navigation, focus handling, active-tab reveal, and reduced-motion behavior remain intact. --- packages/webui/src/components/ui/tabs.tsx | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) 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 ( -