From cb5ee9b672f68f74dededf126b6be96b3300d07d Mon Sep 17 00:00:00 2001 From: 1xDed Date: Sat, 28 Nov 2026 18:12:11 +0300 Subject: [PATCH] fix(navigation): align page headers with the home header level Pins the library header to the top of the window instead of letting it float lower in the page, matches the home row's insets including the macOS traffic-light offset, keeps the scrolled pill surface above the grid, and gives the global app bar the same top padding for consistent header levels. --- src/components/appBar/appBar.scss | 4 +++- src/components/libraryHeader/libraryHeader.scss | 16 +++++++++------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/components/appBar/appBar.scss b/src/components/appBar/appBar.scss index 8e36610..7278790 100644 --- a/src/components/appBar/appBar.scss +++ b/src/components/appBar/appBar.scss @@ -3,7 +3,9 @@ // Custom titlebar: the app header itself sits at the very top of the window, // under the native overlay titlebar (no native glass strip, no blur panels). transition: background-color $transition-time-fast; - padding: 0.8em ($page-margin - 1.7em); + // Same vertical rhythm as the home page header so every page's controls + // sit on one consistent level. + padding: 1.3rem ($page-margin - 1.7em); z-index: 999 !important; top: 0 !important; diff --git a/src/components/libraryHeader/libraryHeader.scss b/src/components/libraryHeader/libraryHeader.scss index 5c4a954..2240ead 100644 --- a/src/components/libraryHeader/libraryHeader.scss +++ b/src/components/libraryHeader/libraryHeader.scss @@ -9,22 +9,24 @@ display: flex; align-items: center; justify-content: space-between; + // Fixed at the very top so the row of controls sits on the same level as + // the home page header instead of floating further down the page. inset: 1em 2em auto 2em !important; border-radius: 9999px; margin: 0 auto; - width: fit-content; - position: sticky; + position: fixed; width: calc(100vw - 4em) !important; z-index: 10; + // Keep the scrolled pill surface behind the controls but above the page. + isolation: isolate; padding: 0.25em !important; transition: background-color 0.2s ease-in-out, opacity 0.2s ease-in-out; html.is-macos & { - // The window has an overlay titlebar: keep controls clear of the traffic lights - // without pushing the right-hand actions out of the viewport. - padding-left: 72px !important; - width: calc(100vw - 4em - 72px) !important; - left: calc(2em + 72px) !important; + // The window has an overlay titlebar: shift the whole pill clear of the + // traffic lights, matching the home header's left edge for the controls. + width: calc(100vw - 4em - 64px) !important; + left: calc(2em + 64px) !important; right: 2em !important; }