10BC0 toc.integrate causes undesired indentation in left nav · Issue #6779 · squidfunk/mkdocs-material · GitHub
[go: up one dir, main page]

Skip to content

toc.integrate causes undesired indentation in left nav #6779

@castedo

Description

@castedo

Context

Material for MkDocs is awesome! I love it!

Here is a fix to this bug:
https://github.com/castedo/mkdocs-material-bug1/blob/main/docs/style/extra.css

Probably not the right fix, but it is what I current hack into my websites.

Bug description

When I build with mkdocs-material 9.4.8 and 9.4.14 and 9.5.9 and use theme: features: toc.integrate I see an unexpected indentation in the left nav.

With the attached repo case, I see the following:
dislike_nav

But what I expected and wanted is:
nav_expected
which is consistent with what I see in the docs:
setup docs

Related links

Reproduction

repro.zip

You can also clone https://github.com/castedo/mkdocs-material-bug1 which has the same contents as the zip.

Steps to reproduce

mkdocs build or mkdocs serve on the repro example above.

You can uncomment the extra_css: - styles/extra.css lines to fix the problem.

Browser

No response

Before submitting

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue reports a bugresolvedIssue is resolved, yet unreleased if open

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0