Closed Andre601 closed 2 years ago
Thanks for reporting. I'm unsure if this is a bug or intended behavior. However, we now have the hiding functionality, so we can normalize the appearance.
Fixed in 8264e338f.
Fixed in 8264e33.
Thanks for the fix (Can't really try it with my current setup, so I'll wait for a future release).
Just a bit curious why there even was this weird behaviour? Like, when Material auto-generates the H1 header is there no TOC container, but when I manually set an H1 (which wouldn't be rendered in TOC either way) the TOC wasn't removed? Really interesting behaviour tbh, but glad a fix was made.
It's likely a side-effect of a refactoring concerning the positioning of the sidebars and main container, which was necessary due to inline positioning of admonitions and the use of display: flow-root
. I'm sorry this was causing you trouble.
No worries. Visual issues aren't that much of a problem and I'm always glad when I can report those to improve things in one way or another.
Released as part of 8.2.9
Contribution guidelines
I've found a bug and checked that ...
mkdocs
orreadthedocs
themescustom_dir
,extra_javascript
andextra_css
Description
When you create a page without any headers - including no H1 header - will Material for MkDocs automatically use the full width of the body, as if the TOC has been disabled, even if this isn't the case.
Example without a header (auto-generated H1):![image](https://user-images.githubusercontent.com/11576465/161849722-7b92818b-6de2-437a-8cb1-83683a517e49.png)
Source:
Example with a H1 header:![image](https://user-images.githubusercontent.com/11576465/161849797-90c66b8c-dd20-48f2-9ad0-aa9d72b5780f.png)
Source:
Expected behaviour
Material for MkDocs should use the same width for all pages, unless I explicitly disable/hide the TOC and/or Nav.
Actual behaviour
Whenever a page without Headers is rendered will the full width be used, which results in inconsistent displays of pages (Some having fixed width without a TOC rendered while others don't)
Steps to reproduce
mkdocs serve
render the resultPackage versions
3.7.6
1.3.0
8.2.8
Configuration
System information