diff --git a/src/renderer/src/components/tab-bar/TabBar.context-menu.test.ts b/src/renderer/src/components/tab-bar/TabBar.context-menu.test.ts index a7bbf0d61fb..03715948aa2 100644 --- a/src/renderer/src/components/tab-bar/TabBar.context-menu.test.ts +++ b/src/renderer/src/components/tab-bar/TabBar.context-menu.test.ts @@ -348,7 +348,7 @@ describe('TabBar context menu wiring', () => { expect(sortable[0].props.tabCount).toBe(2) }) - it('fills the available tab strip width while allowing horizontal scrolling', async () => { + it('sizes the tab strip from its tabs while allowing horizontal scrolling', async () => { const element = await renderTabBar({ tabs: [TERMINAL_TAB], editorFiles: [EDITOR_FILE], @@ -366,7 +366,8 @@ describe('TabBar context menu wiring', () => { expect(stripWrapper).toBeTruthy() expect(stripWrapper?.props.className).toContain('min-w-0') expect(stripWrapper?.props.className).toContain('max-w-full') - expect(stripWrapper?.props.className).toContain('flex-1') + expect(stripWrapper?.props.className).toContain('w-max') + expect(stripWrapper?.props.className).toContain('shrink') expect(strip).toBeTruthy() expect(strip?.props.className).toContain('min-w-0') expect(strip?.props.className).toContain('flex-1') diff --git a/src/renderer/src/components/tab-bar/tab-bar-surface.tsx b/src/renderer/src/components/tab-bar/tab-bar-surface.tsx index 34905a6eef9..c49f13020ce 100644 --- a/src/renderer/src/components/tab-bar/tab-bar-surface.tsx +++ b/src/renderer/src/components/tab-bar/tab-bar-surface.tsx @@ -146,7 +146,7 @@ export function renderTabBarSurface({ {/* Why: no-drag lets tab interactions work inside the titlebar's drag region (outer container stays window-draggable). */}