mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-31 16:33:34 +08:00
fix(desktop): keep tab strip from pushing window controls
Co-Authored-By: Claude GPT-5.5 <noreply@anthropic.com>
This commit is contained in:
parent
f06d88607f
commit
8d16b43113
@ -339,6 +339,8 @@ describe('TabBar', () => {
|
|||||||
|
|
||||||
const scrollRegion = screen.getByTestId('tab-bar').querySelector('.overflow-x-auto')
|
const scrollRegion = screen.getByTestId('tab-bar').querySelector('.overflow-x-auto')
|
||||||
expect(scrollRegion).toBeInTheDocument()
|
expect(scrollRegion).toBeInTheDocument()
|
||||||
|
expect(scrollRegion).toHaveClass('min-w-0')
|
||||||
|
expect(scrollRegion).toHaveClass('flex-1')
|
||||||
|
|
||||||
Object.defineProperty(scrollRegion!, 'clientWidth', {
|
Object.defineProperty(scrollRegion!, 'clientWidth', {
|
||||||
configurable: true,
|
configurable: true,
|
||||||
|
|||||||
@ -381,7 +381,7 @@ export function TabBar() {
|
|||||||
ref={scrollRef}
|
ref={scrollRef}
|
||||||
data-testid="tab-bar-scroll-region"
|
data-testid="tab-bar-scroll-region"
|
||||||
data-desktop-drag-region={isDesktopRuntime ? true : undefined}
|
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()}
|
onDragOver={(e) => e.preventDefault()}
|
||||||
>
|
>
|
||||||
{tabs.map((tab, index) => (
|
{tabs.map((tab, index) => (
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user