-
Notifications
You must be signed in to change notification settings - Fork 201
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
Pages with and without "Contents" have different widths #473
Comments
Do you have this documentation hosted somewhere, or the source code for it available online such that we can build a documentation set with this issue? Asking because that'd make investigating this easier! :) |
@pradyunsg sure, sorry I should have thought of it:
Switching between "Welcome" and "Syllabus" makes the small shift - really really not a big deal, but enough to be noticed. |
Actually now I notice, it's probably because of the image in the right side bar, because it doesn't occur with another page which hasn't this image |
Sorry for the noise, false alarm: removing the margin image doesn't solve the problem... |
I think that this is now resolved by the HTML refactoring in #471 . For example:
will close this - but please re-open if the problem persists when using the |
This issue is occurring on the latest build of the Turing Way in the-turing-way/the-turing-way#2309 but only for some pages... Has contents, wide: No contents, wide: No contents, narrow: |
@da5nsy something weird I just noticed - on the second page the scroll bar wasn't present. When I scrolled up or down, then it showed up and the width was the same as the other pages. Upon subsequent reloads, the scroll bar was there by default. Do you experience this? If this behavior is due to the scroll bar showing up on some pages and not on others (because of content length etc) this will be hard to fix with CSS rules |
FYI: The hacky solution that Furo uses for the scrollbar-on-tall-page-height is... always having a scrollbar on the page. :) |
Seems like the perfect solution to me 😉 |
All 3 above examples appear the same width to me today 🤷 (on a different machine today but...). I will update if I can work anything else out... |
Maybe it is because one of your machines has a taller screen? That could explain why the scroll bar shows up on one but not the other. IMO @pradyunsg has a reasonable approach to just make it appear all the time |
Just tested. Spot on @choldgraf! 🌟 |
Describe the bug
The left-hand bar moves a little when switching between pages. Best explained with a video:
miro-2022-01-29_15.57.00.mp4
Reproduce the bug
Have a page with, and a page without Level 2 headers in it, build the book, and switch between them.
List your environment
Jupyter Book : 0.12.1
External ToC : 0.2.3
MyST-Parser : 0.15.2
MyST-NB : 0.13.1
Sphinx Book Theme : 0.1.10
Jupyter-Cache : 0.4.3
NbClient : 0.5.10
The text was updated successfully, but these errors were encountered: