Fix navbar alignment and sidebar scrollbar#12571
Fix navbar alignment and sidebar scrollbar#12571hoechenberger merged 4 commits intomne-tools:mainfrom
Conversation
|
@cbrnr Nice, looks good on my system. I still get a horizontal scrollbar in the left navbar, any chance to get rid of this one too? |
Maybe setting the left and right margins to zero works? I'll give it a try, but you have to test it then, because I don't see a horizontal scrollbar on my system. |
drammock
left a comment
There was a problem hiding this comment.
I don't love the look of navbar_align="left" but if others are regularly seeing the top nav elements word-wrapping then fixing that is more important than my aesthetic preference.
Still needs green CIs though, and @hoechenberger's confirmation that the horiz. scrollbar is gone too
|
Hey, this fixes the issue, but I agree with @drammock that the (too) left-justification is not the most aesthetically pleasing solution. Could we add more padding between the logo and the first navbar element? Or center the elements – or was that what was causing the issues in the first place? |
|
There was just a new PR opened into the theme that addresses the menu item wrapping: pydata/pydata-sphinx-theme#1784 Might be worth waiting for that? |
what was causing the issue was |
This feedback really belongs on the theme repo, not here.
I'm not sure what you mean by putting "normally" in scare quotes here? Anyway, the hamburger menu does happen. But the theme cannot know a priori how many menu items each site will have, or how long their names will be. So it is always possible for edge cases to arise where the theme's breakpoints don't align well with the widths of the site content. This is mitigated somewhat by providing an optional "More..." dropdown with a configurable threshold, as a way to adjust the natural size of the topbar menu items to the breakpoint.
This feedback also would be more helpful if it were raised on the theme repo, not here. |
|
To summarize, this PR (1) fixes the vertical scrollbar issue in the sidebar and (2) improves (not fixes completely) the navbar (items are in a single row for reasonable widths). I cannot reproduce the horizontal scrollbar issue at all, so I suggest that this should be reported/added to pydata/pydata-sphinx-theme#1238. If you want to wait for pydata/pydata-sphinx-theme#1784, I can remove that part of the PR, so that it only includes the vertical scrollbar fix. WDYT? |
|
Ok with me to merge / not wait. But some CIs are still failing |
|
thanks @cbrnr |


Fixes the issues mentioned in #12558 regarding the navbar getting rendered across two rows as well as a scrollbar in the sidebar getting rendered although there is enough vertical space.