Skip to content

fix(ui): stop header shifting when side panel opens - #328

Merged
ety001 merged 1 commit into
nextfrom
fix/header-scrollbar-shift
Aug 25, 2026
Merged

fix(ui): stop header shifting when side panel opens#328
ety001 merged 1 commit into
nextfrom
fix/header-scrollbar-shift

Conversation

@ety001

@ety001 ety001 commented Aug 25, 2026

Copy link
Copy Markdown
Member

Opening the right side panel (or any Radix dialog) hides the page scrollbar and compensates with padding-right on <body>. That compensation only applies to in-flow elements — the header was position: fixed (viewport-relative), so it ignored the padding and visibly jumped sideways on every open/close.

Fix: switch the header to sticky top-0 (same approach as condenser's Header) so it participates in the body compensation, and drop the pt-16 spacer on <main> that only existed to clear the fixed header.

Verified: pnpm type-check + all 528 unit tests pass; no other code depends on the fixed offset.

Radix's scroll lock hides the scrollbar and compensates with body
padding-right, which only applies to in-flow elements. The header was
position: fixed (viewport-relative), so it ignored the compensation and
jumped sideways on every sheet/dialog open. Switch to sticky (same as
condenser's Header) and drop the pt-16 spacer on <main> that only
existed to clear the fixed header.
@ety001
ety001 merged commit 702ceaf into next Aug 25, 2026
2 of 3 checks passed
@ety001
ety001 deleted the fix/header-scrollbar-shift branch August 25, 2026 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant