fix(desktop): keep tab strip from pushing window controls

Co-Authored-By: Claude GPT-5.5 <noreply@anthropic.com>
This commit is contained in:
你的姓名 2026-06-14 01:38:16 +08:00
parent f06d88607f
commit 8d16b43113
2 changed files with 3 additions and 1 deletions

View File

@ -339,6 +339,8 @@ describe('TabBar', () => {
const scrollRegion = screen.getByTestId('tab-bar').querySelector('.overflow-x-auto')
expect(scrollRegion).toBeInTheDocument()
expect(scrollRegion).toHaveClass('min-w-0')
expect(scrollRegion).toHaveClass('flex-1')
Object.defineProperty(scrollRegion!, 'clientWidth', {
configurable: true,

View File

@ -381,7 +381,7 @@ export function TabBar() {
ref={scrollRef}
data-testid="tab-bar-scroll-region"
data-desktop-drag-region={isDesktopRuntime ? true : undefined}
className="flex-1 flex items-stretch overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden"
className="flex min-w-0 flex-1 items-stretch overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden"
onDragOver={(e) => e.preventDefault()}
>
{tabs.map((tab, index) => (