Mermaid diagram shift page when opening a link with anchor #9940
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
closed: duplicate
This issue or pull request already exists in another issue or pull request
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
When opening the provided link in the step to reproduce, which points to a page containing a Mermaid diagram, the page shifts or scrolls due to the presence of the graphic, causing it not to land precisely at the anchor specified in the URL.
Every page with a mermaid diagram in my personal project suffer from the same issue.
Reproducible demo
No response
Steps to reproduce
Expected behavior
The page should load and position itself precisely at the anchor specified in the URL, allowing users to land directly at the intended section.
Actual behavior
Upon opening the URL, the page shifts or scrolls due to the presence of the Mermaid diagram, causing it to miss the anchor and land at an incorrect position.
The length of the shift depends on the length of the graphic.
Your environment
Self-service
The text was updated successfully, but these errors were encountered: