Skip to content

The sticky header only sticks for about one viewport of scroll #405

Open

Description

@neuromechanist

Problem

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.

Measured on production, https://nemar.org/about, 1280x800, 2026-10-01 (body computed height 800 px, document 10317 px):

scroll header top
0 0
400 0
1000 -265
3000 -2265

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions