Skip to content

Fix overlapping navbar #1424

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
janewang opened this issue Mar 14, 2025 · 1 comment
Open

Fix overlapping navbar #1424

janewang opened this issue Mar 14, 2025 · 1 comment
Assignees
Labels
bug Something isn't working dev-rel

Comments

@janewang
Copy link
Contributor

Image

Can we fix the overlapping in the navbar?
I'm using on my macbookpro screen and the half page window size makes the navbar overlap on itself
I think we just need to update
@media (max-width: 996px) {
.navbar__toggle {
display: inherit;
}
}
996px --> a bigger number? But I don't really know how to do that in stellar-docs

Slack thread: https://stellarfoundation.slack.com/archives/C049E67BFSP/p1741905958726489

@janewang janewang added the bug Something isn't working label Mar 14, 2025
@janewang janewang moved this to To Do in Dev Docs Mar 14, 2025
@ElliotFriend
Copy link
Contributor

This one is actually more complex than it would seem. The navbar and sidebar components behave differently based on some hard-coded breakpoint values, and Infima (the CSS package used by docusaurus) doesn't provide any means of customizing them either.

Beyond the custom CSS like you mentioned (thanks @chowbao!), there are some further components that we need to swizzle and customize, because they use the useWindowSize hook. Here's some further info I've found that might help us decide what to do:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dev-rel
Projects
Status: To Do
Development

No branches or pull requests

3 participants