-
Notifications
You must be signed in to change notification settings - Fork 11.2k
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
Mermaid diagram does not show properly #2212
Comments
Somehow the generated svg is ending with |
I noticed that too, the value on my end is equally arbitrary (and different). I tried tinkering with the css to no avail, and after some reading, it seems that the property is being determined elsewhere. |
I tried to check if I could fix it quickly, but it seems to need a "magical" solution. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Have you checked that your issue isn't already filed?
Bug description
Diagrams larger than the current example will display incorrectly in two ways: 1) will be occluded on the right, and 2) will be occluded on the bottom if they are too long
How to reproduce the bug
To reproduce the width issue:
Go to https://alshedivat.github.io/al-folio/blog/2021/diagrams/
Drag the diagram to the right.
I could not reproduce the height issue with sequenceDiagrams (the mermaid diagram used in the example). However, things break down if you use other types.
Using the below will lead to a diagram that gets cut at the bottom, even though this diagram renders fine in other places (such as markdown preview and here, see below):
It renders fine here:
Error messages and logs
What operating system are you using?
Windows
Where are you seeing the problem on?
Running locally with Docker
More info
No response
The text was updated successfully, but these errors were encountered: