diff --git a/frontend/src/components/editor/section-anchor-tabs.tsx b/frontend/src/components/editor/section-anchor-tabs.tsx index 6779505..5cc9261 100644 --- a/frontend/src/components/editor/section-anchor-tabs.tsx +++ b/frontend/src/components/editor/section-anchor-tabs.tsx @@ -2,7 +2,8 @@ /** * Shared underline section tabs for prompt editor and workflow side panels. - * Equal-width columns; active state is a primary bottom border (not pill Tabs). + * Left-aligned flex chips (not equal-width grid); active state is a primary + * bottom border (not pill Tabs). */ import { cn } from "@/lib/utils"; @@ -31,15 +32,7 @@ export function SectionAnchorTabs({ if (sections.length === 0) return null; const list = ( -
+
{sections.map((section) => { const active = activeSectionId === section.id; @@ -50,7 +43,7 @@ export function SectionAnchorTabs({ aria-current={active ? "location" : undefined} onClick={() => onSelect(section.id)} className={cn( - "-mb-px whitespace-nowrap border-b-2 px-2 py-2.5 text-center text-xs transition-colors sm:px-3 sm:text-sm", + "-mb-px min-w-24 whitespace-nowrap border-b-2 px-3 py-2.5 text-center text-xs transition-colors sm:text-sm", active ? "border-primary text-foreground" : "border-transparent text-muted-foreground hover:bg-surface-strong/50 hover:text-foreground",