You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Labels in nodes and arrows are overflowing the size of their nodes.
It happens since version 9.0.13. More specifically, it has probably been introduced by this commit: 5065bf9
Here is how it looked like in 9.0.12 and before:
Suspected root cause
The variable --md-mermaid-font-family is now only defined under the .mermaid class and not in :root anymore. For some reasons, Mermaid compiler may not be able to pick it and thus compute the size of the nodes with its default font instead.
Workaround
If I manually set the variable in :root in custom CSS, it solves the issue:
Thanks for reporting, for the excellent reproduction, and for finding the root cause! I've checked and it seems that we can revert the change in _mermaid.scss, which solves this problem and doesn't re-introduce the problem fixed in #5034.
Context
No response
Bug description
Labels in nodes and arrows are overflowing the size of their nodes.
It happens since version 9.0.13. More specifically, it has probably been introduced by this commit: 5065bf9
Here is how it looked like in 9.0.12 and before:
Suspected root cause
The variable
--md-mermaid-font-family
is now only defined under the.mermaid
class and not in:root
anymore. For some reasons, Mermaid compiler may not be able to pick it and thus compute the size of the nodes with its default font instead.Workaround
If I manually set the variable in
:root
in custom CSS, it solves the issue:Related links
Reproduction
example.zip
Steps to reproduce
Browser
Chrome, Safari, Firefox
Before submitting
The text was updated successfully, but these errors were encountered: