From 0574107e18c045ccf60856593a42ee3d46da5c7b Mon Sep 17 00:00:00 2001 From: Kit Langton Date: Thu, 30 Jul 2026 20:46:52 -0400 Subject: [PATCH] tui: active tabs now show more of their title before truncating The selected tab in the titlebar expands from 224px to 288px so users can read more of the session or draft name before it gets cut off. Inactive tabs stay compact at 224px to keep the tab strip dense. --- packages/app/src/components/titlebar-tab-strip.tsx | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/packages/app/src/components/titlebar-tab-strip.tsx b/packages/app/src/components/titlebar-tab-strip.tsx index 7ef53324cd..7da9e92adc 100644 --- a/packages/app/src/components/titlebar-tab-strip.tsx +++ b/packages/app/src/components/titlebar-tab-strip.tsx @@ -88,8 +88,12 @@ function SessionTabSlot(props: { data-titlebar-tab-slot data-tab-key={props.id} data-active={props.active()} - class="relative flex w-56 min-w-7 max-w-56 flex-shrink" - classList={{ hidden: !session() && !missingSession() && !persisted()?.title }} + class="relative flex min-w-7 flex-shrink" + classList={{ + hidden: !session() && !missingSession() && !persisted()?.title, + "w-72 max-w-72": props.active(), + "w-56 max-w-56": !props.active(), + }} > { @@ -144,7 +148,11 @@ function DraftTabSlot(props: { data-titlebar-tab-slot data-tab-key={props.id} data-active={props.active()} - class="relative flex w-56 min-w-7 max-w-56 flex-shrink" + class="relative flex min-w-7 flex-shrink" + classList={{ + "w-72 max-w-72": props.active(), + "w-56 max-w-56": !props.active(), + }} > {