-
Notifications
You must be signed in to change notification settings - Fork 6
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 flowcharts render blank boxes when a text line is too long (at ~30 chars) #195
Comments
I just took a quick look into this and it turns out this doesn't happen on Safari or Chromium. There all the examples you gave look good and the Markdown labels also work with things like bold formatting. On Firefox however I can reproduce the issue. That said I'll carefully conclude that this should be an issue with Mermaid, not Vivify. I also just tried updating Mermaid to the newest version (11.4.1) and that didn't fix it. Possibly related issues:
@tuurep could you look into those and confirm/deny that this is not Vivify's fault?🙈 If you confirm we can close this issue. |
Yes, works perfect on Chromium's side, and those issues are related. A potential workaround for Firefox is setting (Why: see mermaid-js/mermaid#5785 (comment)) Looking around trying to understand what
Examples:
But that probably has some undesirable effects as well, what I spotted right now was this:
|
So do you think there is anything we can/should do on Vivify's side? If not I'd close this |
Yes, I made sure to subscribe to the issues in mermaid repos - really depends on those. |
Description
When a flowchart node has a line of text that's too long, the whole node renders as a small blank box. Example:
Screenshot:
With manual wrapping (a newline or a
<br>
tag), it can be made to render if the lines are about 27 characters or less, for example:Screenshot:
Blank box in comparison to normal boxes with text:
Expectation
This blog post reveals 2 things:
https://docs.mermaidchart.com/blog/posts/automatic-text-wrapping-in-flowcharts-is-here
Long lines should render as long boxes to begin with.
Hard wrapping should not be necessary if the string is formatted in this way:
"`Lorem ipsum dolor sit amet, consectetur.`"
.. in which case it should auto wrap (i.e. soft wrap), but in Vivify's rendering this isn't working.
Context
vivify-git
(AUR)vivify-server v0.6.3.r0.g5d07d16-1-aur
The text was updated successfully, but these errors were encountered: