diff --git a/src/App.svelte b/src/App.svelte index d08ac28..f9c5d80 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -53,7 +53,7 @@ cancels the pane's top padding so a page's artwork can run underneath it, and the page restores that inset for its own content. Without it the page renders 24px too high; with it but not listed here, 24px too low. */ - const BAR_VIEWS = new Set(["catalogArtist", "catalogAlbum"]); + const BAR_VIEWS = new Set(["catalogArtist", "catalogAlbum", "catalog"]); initEvents(); autoConnect(); @@ -180,6 +180,12 @@ it: the glass bar bleeds up over it, cancels it for what follows, and each page under the bar restores it as its own padding-top. */ --pane-pad: 24px; + /* The glass bar's height, declared HERE rather than on the bar so pages + can clear it. A page with a hero (artist, album) wants its artwork to + run underneath the bar and only takes --pane-pad back; a page with no + artwork behind the bar (search) has to start below it, or its first + heading sits under the frost at rest. */ + --bar-h: 46px; border-radius: var(--radius); overflow-y: auto; overflow-anchor: none; diff --git a/src/components/AlbumCard.svelte b/src/components/AlbumCard.svelte index fcc47a8..ad1e8b3 100644 --- a/src/components/AlbumCard.svelte +++ b/src/components/AlbumCard.svelte @@ -1,5 +1,5 @@ diff --git a/src/components/GlassBar.svelte b/src/components/GlassBar.svelte index 0c07947..8397224 100644 --- a/src/components/GlassBar.svelte +++ b/src/components/GlassBar.svelte @@ -125,8 +125,12 @@