feat: custom title bar that is more compact

This commit is contained in:
2026-02-17 10:52:25 +01:00
parent 03cf6ae9e7
commit 7b5829e965
14 changed files with 756 additions and 113 deletions

View File

@@ -78,4 +78,12 @@ describe('TabBar', () => {
expect(await screen.findByText('abc123d feat: improve commit diff tabs')).toBeInTheDocument();
expect((window as any).electronAPI.git.getHistory).toHaveBeenCalledWith('/repo/path', 200);
});
it('does not render the tab bar when there are no open tabs', () => {
useAppStore.setState({ tabs: [], activeTabId: null });
const { container } = render(<TabBar />);
expect(container.querySelector('.tab-bar')).toBeNull();
});
});