Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
solodov opened this issue Aug 11, 2023 · 1 comment
Closed
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. pkgsite

Comments

@solodov
Copy link

solodov commented Aug 11, 2023

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.

@gopherbot gopherbot added this to the Unreleased milestone Aug 11, 2023
@findleyr findleyr modified the milestones: Unreleased, pkgsite/later Aug 16, 2023
@prattmic prattmic added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Apr 15, 2025
@prattmic
Copy link
Member

This sounds like a duplicate of #60347.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. pkgsite
Projects
None yet
Development

No branches or pull requests

5 participants