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; }