Skip to content

x/pkgsite: navigating to elements with anchors breaks depending on page width #61961

Closed as duplicate of#60347
@solodov

Description

@solodov

What is the URL of the page with the issue?

I first noticed it with, https://pkg.go.dev/bufio#Scanner, but quick check shows the same behaviour with any module and any symbol.

What is your user agent?

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36

Screenshot

About 1000 pixels wide, opening the url shows content just below the anchor:

SCR-20230811-lvyk

And a narrower window just goes to the top of the page:

SCR-20230811-lwat

What did you do?

just tried navigating to symbol documentation with narrow enough window. I think navigation starts to break down when window is narrow enough that left hand side menu is collapsed.

Incognito mode makes no difference.

What did you expect to see?

SCR-20230811-lvvb

What did you see instead?

See the screenshots above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.pkgsite

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions