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

Skip the top menu when scrolling on small screens #200

Merged
merged 1 commit into from
Jul 10, 2024

Conversation

chatziko
Copy link
Contributor

@chatziko chatziko commented Jul 9, 2024

When clicking on a section link on small screens, the section will scroll behind the fixed top menu, which is particularly bad when the top menu is long and wraps in multiple lines.

image

This PR adds scroll-margin-top to compensate for that. Maybe some CSS wizardry could take into accont the exact height of the top menu, but 48px is the height of a single menu line with the default font, and looks ok also for multiple lines.

@zjedi zjedi merged commit a20a2ff into zjedi:master Jul 10, 2024
5 checks passed
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