Skip to content

Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.

fix(tabbar): restore min-width: 0 on the wrapper + typed vi.fn in the test

enes85303d9c53f6
diff --git a/src/renderer/components/TabBar.test.tsx b/src/renderer/components/TabBar.test.tsx
index 2a79d818e..5b20bb99b 100644
--- a/src/renderer/components/TabBar.test.tsx
+++ b/src/renderer/components/TabBar.test.tsx
@@ -120,7 +120,7 @@ describe('TabBar caret menu', () => {
describe('TabBar New-project pin', () => {
let root: Root
let host: HTMLElement
- let onOpenWelcome: ReturnType<typeof vi.fn>
+ let onOpenWelcome: ReturnType<typeof vi.fn<() => void>>
beforeEach(async () => {
const { TabBar, useProjects } = await load()
diff --git a/src/renderer/styles.css b/src/renderer/styles.css
index f4ee9d2a0..0b25b8802 100644
--- a/src/renderer/styles.css
+++ b/src/renderer/styles.css
@@ -245,6 +245,10 @@ body,
align-items: center;
gap: 4px;
flex: 1;
+ /* Load-bearing (issue #375): a flex item's min-width defaults to `auto`, which resolves against
+ the pill's full content width — so with many tabs the wrapper refuses to shrink and shoves
+ the + past the window edge. Measured: 1280 px / 12 projects, + at x=1382 without this. */
+ min-width: 0;
}
.tabbar__tabs {
display: flex;