Skip to content
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

Inline admonitions/details overlap other details #2336

Closed
5 tasks done
ghost opened this issue Feb 23, 2021 · 3 comments · Fixed by aws/jsii#2693, hacf-fr/awesome-francophone-home-assistant#106 or JosephMontoya-TRI/BEEP#3
Labels
bug Issue reports a bug resolved Issue is resolved, yet unreleased if open

Comments

@ghost
Copy link

ghost commented Feb 23, 2021

I've found a bug and checked that ...

  • ... the problem doesn't occur with the default MkDocs template
  • ... the problem is not in any of my customizations (CSS, JS, template)
  • ... the documentation does not mention anything about my problem
  • ... there are no open or closed issues that are related to my problem

Description

When you set an admonition or detail block as inline, following admonition blocks will adapt to its size, but detail blocks will stay unaltered. Hence, the detail block ignores the inline block and gets overlapped.

I have tried both inline and inline end, also both an inline admonition and an inline detail. The result is the same, as you can see in the screenshots below.

See screenshots

image1
image2
image3

Steps to reproduce the bug

Use a setup similar to this
??? info inline "I'm inline!"
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer commodo libero a massa consectetur sollicitudin.
    Morbi molestie nisl tempor turpis eleifend tristique. Donec ac ante interdum, lacinia ex eget, porttitor nisi.
    Pellentesque nec massa auctor felis sagittis cursus id et nisl. Duis aliquam, felis ut porttitor sollicitudin,
    libero libero placerat dui, laoreet tristique nibh nibh vel nunc. Quisque nec volutpat arcu. Pellentesque sit amet
    nibh porttitor, feugiat ipsum ut, commodo nisl.

!!! info "Admonition 1"
    I am an admonition

??? info "Detail 1"
    I am a detail

!!! info "Admonition 2"
    I am another admonition

Package versions

  • Python: 3.9.1
  • MkDocs: 1.1.2
  • Material: 7.0.0

System information

  • OS: Windows 21H1
  • Browser: Firefox 85
@squidfunk
Copy link
Owner

Thanks for reporting!

@squidfunk squidfunk added the bug Issue reports a bug label Feb 24, 2021
@squidfunk
Copy link
Owner

Fixed in a17b637 together with #2337.

@squidfunk squidfunk added the resolved Issue is resolved, yet unreleased if open label Feb 24, 2021
@squidfunk
Copy link
Owner

Released as part of 7.0.1.

This was referenced Mar 8, 2021
This was referenced Mar 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment