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

Page status incorrectly positioned when scrolling navigation sidebar #6910

Closed
4 tasks done
Enn83 opened this issue Mar 14, 2024 · 6 comments
Closed
4 tasks done

Page status incorrectly positioned when scrolling navigation sidebar #6910

Enn83 opened this issue Mar 14, 2024 · 6 comments
Labels
bug Issue reports a bug resolved Issue is resolved, yet unreleased if open

Comments

@Enn83
Copy link

Enn83 commented Mar 14, 2024

Context

No response

Bug description

When I have many page in the navigation sidebar (or when the window is shrink), the page status hover is incorrectly positionned.

For example, on the famous Material for MkDocs website:
image

You can see the Recently added tooltip is positionned like if the navigation sidebar was not scrolled.

Related links

Reproduction

9.5.13-page-status-incorrectly-positionned.zip

Steps to reproduce

  1. Create some page in a section,
  2. Add a Page status to one of them (at least),
  3. Scroll (and shrink the windows if needed) the navigation sidebar,
  4. Hover the page status and see the tooltip is incorrectly positionned.

Browser

Edge

Before submitting

@squidfunk
Copy link
Owner

@squidfunk squidfunk added the bug Issue reports a bug label Mar 15, 2024
@squidfunk
Copy link
Owner

squidfunk commented Apr 14, 2024

Fixed in e15518c – I backported the new tooltip implementation from Insiders in the refactor/tooltip-positioning branch! If you could spare a few minutes and check whether this fixes your issue, we can release it in the next days ☺️ Install with:

pip install git+https://github.com/squidfunk/mkdocs-material.git@refactor/tooltip-positioning

PR: #7045

@squidfunk squidfunk added the resolved Issue is resolved, yet unreleased if open label Apr 14, 2024
@Enn83
Copy link
Author

Enn83 commented Apr 14, 2024

Hi and thanks for fixing this!
I will try this (on the minimal reproductible example and my repo.) as soon as possible (tomorrow morning, I don't have access to my doc now) and I will inform you of the result 😊!

@Enn83
Copy link
Author

Enn83 commented Apr 15, 2024

The issue is resolved thanks to your refactor/tooltip-positioning branch!
I tried in both my documentation and the minimal reproductible example:

image

@Enn83 Enn83 closed this as completed Apr 15, 2024
@squidfunk
Copy link
Owner

Thanks! Keeping open until released.

@squidfunk
Copy link
Owner

Released as part of 9.5.18.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue reports a bug resolved Issue is resolved, yet unreleased if open
Projects
None yet
Development

No branches or pull requests

2 participants