Skip to content
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

fix: scroll to a markdown heading is hidden when navigating on mobile #266

Merged
merged 1 commit into from
Aug 30, 2024

Conversation

SeanCassiere
Copy link
Member

On mobile, if you click a link to a heading within the markdown content, the heading with its content is hidden behind the mobile navbar.

To test, using a mobile phone (or more realistically the browser devtool) go to: https://tanstack.com/router/latest/docs/framework/react/start/api-routes, and click on the "Defining an API Route" link in the topics at the start of the page.

See the heading is hidden behind the navbar.
image

With this fix, it is no longer hidden.
image

Copy link

vercel bot commented Aug 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tanstack-com ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 28, 2024 10:49am

@SeanCassiere SeanCassiere merged commit c7bab7f into main Aug 30, 2024
4 checks passed
@SeanCassiere SeanCassiere deleted the mobile-link-scroll branch August 30, 2024 23:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants