Repository navigation
Conversation
When the sidebar is open and the viewport crosses 840px into narrow
view, the "Subscription management" button shifts down by ~12px
because the X close button (padding: 1rem 0) is taller than the wide
header row, and the vertical space above the X is counted twice
(`.aside.aside_feed { padding: 10px 0 }` plus
`.configure-feeds { margin-top: 10px }`).
Introduce two tokens at base-theme :root:
- `--height-header: 56px` is consumed by the narrow `.header > .item`
min-height and the narrow `.aside .toggle_aside` height. The X
button row matches the header row.
- `--aside-padding-y: 10px` is consumed by the narrow
`.configure-feeds` margin-top. Themes with non-default aside
padding override the token at :root.
Two supporting changes in the narrow @media:
- `.aside .toggle_aside` rewritten to box-sizing: border-box +
height: var(--height-header) + flex centering. The X icon is
vertically centered without relying on padding math.
- `.aside.aside_feed { padding: 0 }` bumped to
`:root .aside.aside_feed`. Same-specificity declarations in
per-theme files (loaded after base-theme) were shadowing it.
Per-theme overrides:
- Origine: --aside-padding-y: 0.5rem (cascades to Dark and
Origine-compact via metadata.json).
- Origine-compact: --height-header: 37.6px (smaller logo).
polybjorn
marked this pull request as ready for review
May 4, 2026 09:34
Alkarex
pushed a commit
that referenced
this pull request
May 4, 2026
Alt-Dark, Dark, Origine, and Pafat use `border-bottom: 1px solid` on `.header > .item`, making their wide-view header 57px tall (56px content + 1px border). Other shipped themes have no such border and render at 56px. Replace `border-bottom` with `box-shadow: inset 0 -1px 0`. Visually identical (same colour, same position at the bottom of each header cell), but the shadow doesn't add to the box height. Wide-view header outerHeight becomes 56px across themes, which lets the shared `--height-header: 56px` token introduced in #8783 produce pixel-perfect alignment between the wide header and the narrow drawer X button. Without this PR, those four themes carry a 1px residual offset under #8783's alignment fix. Co-authored-by: Bjørn A. Andersen <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When the sidebar is open and the viewport crosses 840px into narrow view, the "Subscription management" button shifts down by about 12px:
.aside.aside_feed { padding: 10px 0 }, once by.configure-feeds { margin-top: 10px }.Two tokens at base-theme
:root:--height-header: 56pxis used by the narrow.header > .itemmin-heightand the narrow.aside .toggle_asideheight. The X button row matches the header row.--aside-padding-y: 10pxis used by the narrow.configure-feedsmargin-top. Themes with non-default aside padding override the token at:root.Two supporting changes in the narrow
@media:.aside .toggle_asiderewritten frompadding: 1rem 0; display: blockto flex centering withbox-sizing: border-box; height: var(--height-header). The X icon is vertically centered without relying on padding math..aside.aside_feed { padding: 0 }bumped to:root .aside.aside_feed. Same specificity declarations in per-theme files (loaded after base-theme) were shadowing the original.Per-theme overrides
Origine/origine.css:--aside-padding-y: 0.5rem. Cascades toDarkandOrigine-compact, which load Origine viametadata.json.Origine-compact/origine-compact.css:--height-header: 37.6px. Smaller logo, measured wide header is 37.6px.Test plan
Verified on
edge:#btn-subscriptiontopmatches across wide and narrow drawer-open per theme: Nord/Alt-Dark/Dark/Pafat/Flat/Dark-pink at 66px, Origine and Dark at 64px, Origine-compact at 45.6px.npm run stylelintpasses.npm run rtlcssproduces no further diff.