-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Outline overflows navbar when sidebar not present #2442
Comments
UPD: The navbar is also not clipping the underlying content when navigating to an anchor. Example: https://naninovel.github.io/api/#print — notice how both the page content and outline overflow the navbar. It starts to work correctly only after the page is scrolled up to the start and then back down. |
I'll try to fix this. If anyone have any tips on where to look at, please share. |
So in the end I've fixed this with a simple css override making the navbar semi-transparent with blur filter. It both looks better and provide better UX visually expanding content space. Coincidentally, it also allows to remove vid.mp4If anyone is interested here is the css I've used: :root {
--nav-c-bg: rgba(255, 255, 255, 0.5);
}
.dark {
--nav-c-bg: rgba(30, 30, 32, 0.5);
}
.curtain {
display: none !important;
}
.fill {
background: transparent !important;
}
.content-body {
background: var(--nav-c-bg) !important;
}
.content-body::after {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
backdrop-filter: saturate(180%) blur(5px);
z-index: -1;
} |
Describe the bug
When sidebar is not present, the page is not scrolled and outline is scrolled down, it overflows the navbar.
Reproduction
https://stackblitz.com/edit/vite-v81ufa
Expected behavior
Outline is clipped when over navbar in the same way when sidebar is present.
System Info
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: