The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): segmented control labels never wrap or overlap a neighbour
Brooklyn Nicholson7717f8cac487
diff --git a/apps/desktop/src/components/ui/segmented-control.tsx b/apps/desktop/src/components/ui/segmented-control.tsxindex 45c854ecf2b..7bf54f27d51 100644--- a/apps/desktop/src/components/ui/segmented-control.tsx+++ b/apps/desktop/src/components/ui/segmented-control.tsx@@ -43,7 +43,7 @@ export function SegmentedControl<T extends string>({<buttonaria-pressed={active}className={cn(- 'flex items-center justify-center gap-1 rounded-[3px] px-2.5 py-0.5 text-[0.6875rem] font-medium transition-colors disabled:cursor-default',+ 'flex min-w-0 items-center justify-center gap-1 rounded-[3px] px-2.5 py-0.5 text-[0.6875rem] font-medium whitespace-nowrap transition-colors disabled:cursor-default',active ? 'bg-background text-foreground shadow-sm' : 'text-muted-foreground hover:text-foreground')}disabled={disabled}@@ -51,8 +51,10 @@ export function SegmentedControl<T extends string>({onClick={() => onChange(id)}type="button">- {Icon && <Icon className="size-3" />}- {label}+ {Icon && <Icon className="size-3 shrink-0" />}+ {/* A squeezed track ellipsizes a label inside its own cell; it never+ wraps or paints across the neighbouring option. */}+ <span className="min-w-0 truncate">{label}</span></button>)})}