Skip to content

A full-featured download manager.

fix(ui): adjust panel header spacing

Dr_rOot2cd91dad2d61
diff --git a/e2e/panel-toolbars.spec.ts b/e2e/panel-toolbars.spec.ts
index 290958b2..d74bffc3 100644
--- a/e2e/panel-toolbars.spec.ts
+++ b/e2e/panel-toolbars.spec.ts
@@ -46,10 +46,7 @@ test('Trackers and Plugins share expandable, keyboard-accessible panel toolbars'
await expect(trackerInput).toHaveValue('')
await trackerInput.press('Escape')
await expect(trackerSearch).toBeFocused()
- await page.screenshot({
- path: testInfo.outputPath('trackers-toolbar.png'),
- animations: 'disabled',
- })
+ await page.screenshot({ path: testInfo.outputPath('trackers-toolbar.png') })
await page.getByRole('link', { name: 'Plugins', exact: true }).click()
const plugins = page.getByRole('toolbar', { name: 'Plugins' })
@@ -73,7 +70,6 @@ test('Trackers and Plugins share expandable, keyboard-accessible panel toolbars'
await expect(page.getByRole('dialog')).toHaveCount(0)
await page.screenshot({
path: testInfo.outputPath('plugins-toolbar-light.png'),
- animations: 'disabled',
})
await plugins.getByRole('link', { name: 'Diagnostics' }).click()
await expect.poll(() => page.url()).toContain('/plugins/diagnostics')
@@ -90,7 +86,6 @@ test('Trackers and Plugins share expandable, keyboard-accessible panel toolbars'
await expect(input).toBeFocused()
await page.screenshot({
path: testInfo.outputPath('plugins-toolbar-dark-compact.png'),
- animations: 'disabled',
})
await page.emulateMedia({ contrast: 'more' })
await expect(plugins.locator('[data-slot="toolbar-glass"]')).toHaveCount(0)
diff --git a/src/renderer/components/desktop-kit/panel/panel-shell.tsx b/src/renderer/components/desktop-kit/panel/panel-shell.tsx
index 86d38412..939f058e 100644
--- a/src/renderer/components/desktop-kit/panel/panel-shell.tsx
+++ b/src/renderer/components/desktop-kit/panel/panel-shell.tsx
@@ -43,9 +43,9 @@ export function PanelShell({
<header
data-slot="panel-shell-header"
className={cn(
- // Standard headers retain the 36px clearance below window controls.
- // A 36px action row and 8px bottom padding make an 80px header.
- 'flex shrink-0 items-center justify-between gap-4 px-6 pt-9 pb-2 transition-[padding] duration-200 motion-reduce:transition-none',
+ // Standard headers keep 32px above the title and 12px below it.
+ // Together with the 36px action row, the header remains 80px tall.
+ 'flex shrink-0 items-center justify-between gap-4 px-6 pt-8 pb-3 transition-[padding] duration-200 motion-reduce:transition-none',
// Compact rows center on the window-chrome icon line: the overlay
// strip renders its 28px buttons at window y 13..41 (pt-[14px]
// wrapper in AppLayout), i.e. centerline y=27. The inset sits 8px