You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The sticky header only sticks for about one viewport of scroll #405
The header is position: sticky but only sticks for about one viewport of scroll, on every page.
src/styles/reset.css sets html, body { height: 100% }, which makes body exactly one viewport tall, and a sticky element cannot leave its containing block. Past that point the header scrolls away with the page.
The header on origin/main before the mobile header work behaves the same, so this predates it.
Why it matters now
On a phone the account panel and the hamburger panel hang from this header (#397). Once the header has scrolled away they are out of reach.
The account panel now scrolls inside the viewport (#404), but a stuck header was the assumption behind that fix.
To check
Whether height: 100% on html, body is needed by anything (full-height layouts, the footer), or can be min-height.
Both themes, the Discover sidebar and the dataset page (they have their own sticky regions).
Activity