Skip to content

Avoid sticky header overlap when linking to comments #9910

Open

Description

@fregante

Description

This:

Image

I'm not sure if it's just an issue with PR review comments, I can't repro elsewhere.

The fix is simple though, it just needs testing in other parts of the site and a more specific selector

[id] {
  scroll-margin-top: 80px;
}

The code will go in github-bugs.css

Example URLs

refined-github/sandbox#47 (comment)

Activity

  1. added
    small
    and removed on Jul 31, 2026
  2. anu-priya-1999 commented on Aug 4, 2026

    @anu-priya-1999
  3. abrudz commented on Sep 4, 2026

    @abrudz

    Shouldn't it be for everything? See e.g. Dyalog/documentation#861 (comment) which links to a checkbox item which ends up covered by the header.

  4. fregante commented on Sep 4, 2026

    @fregante
    MemberAuthor

    Shouldn't it be for everything

    "Everything on issue/PR pages" would be good since they're the pages with a sticky header

  5. cqxswbc2 commented on Sep 4, 2026

    @cqxswbc2
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

    acceptedenhancementgithub bugsmall

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions