Skip to content

fix: navbar overlaps content heading when opening a page at specific section #1

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

khalidwaleed0
Copy link

Problem:

When opening any site like https://umami.is/docs#hosting, the navbar overlaps the hosting header because the scroll margin is too small.

Solution:

Change the scroll-margin-top value to at least 70px (navbar height).

Here are two images before and after my changes
before-commit
after-commit

Copy link

vercel bot commented Apr 7, 2025

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

Name Status Preview Comments Updated (UTC)
shiso ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 7, 2025 10:09pm

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.

1 participant