Skip to content

Page navigation via docs search causes section heading to be hidden due to missing scroll padding top #1693

@Greenheart

Description

@Greenheart
  • Navigating directly to https://svelte.dev/docs/kit/remote-functions#query.batch shows the correct section, with scroll padding to make sure the section heading is visible.

  • However, when you first go to https://svelte.dev/docs/kit/project-structure and then use the docs search e.g. searching for query.batch to navigate to this section on a different page, the query.batch section heading is hidden under the menu due to a lack of scroll padding. Or maybe the positioning happens via JS and doesn't take scroll padding into account.

  • When using the docs search to navigate to a section on the same page, you do get the correct scroll padding though. Maybe the native browser scroll is used, which correctly uses the scroll padding that was set via CSS?

Browser: Firefox 146

Reproduction:

Screencast.From.2025-12-03.17-23-56.mp4

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