From 2a6c09f4267eb2b992e20d434021bf90d2b28f3a Mon Sep 17 00:00:00 2001 From: Jamie Pine Date: Wed, 24 Dec 2025 11:32:24 -0800 Subject: [PATCH] Refactor: Update TabBar component for improved styling and functionality - Adjusted layout and styling of the TabBar for better visual consistency and user experience. - Enhanced tab button styles to support flexible sizing and improved alignment. - Updated close button positioning and hover effects for better accessibility. - Refined transition effects for active tab indication, improving responsiveness. --- .../src/components/TabManager/TabBar.tsx | 28 +++++++++++-------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/packages/interface/src/components/TabManager/TabBar.tsx b/packages/interface/src/components/TabManager/TabBar.tsx index db2f5c4e5..5b4320c76 100644 --- a/packages/interface/src/components/TabManager/TabBar.tsx +++ b/packages/interface/src/components/TabManager/TabBar.tsx @@ -13,15 +13,15 @@ export function TabBar() { } return ( -
-
+
+
{tabs.map((tab) => ( switchTab(tab.id)} className={clsx( - "relative flex items-center gap-1.5 px-3 py-1 rounded-md text-[13px] whitespace-nowrap group min-w-0 max-w-[180px]", + "relative flex items-center justify-center py-1.5 rounded-full text-[13px] group flex-1 min-w-0", tab.id === activeTabId ? "text-ink" : "text-ink-dull hover:text-ink hover:bg-app-hover/50", @@ -30,32 +30,38 @@ export function TabBar() { {tab.id === activeTabId && ( )} - {tab.title} + {/* Close button - absolutely positioned left */} + + {tab.title} + ))}