Mermaid: Render issue on chromium based browsers.

Created on 18 Dec 2020  路  3Comments  路  Source: mermaid-js/mermaid

Describe the bug
UML Diagrams have text overflow in chromium browsers, rendering fine on Firefox.

To Reproduce
Steps to reproduce the behavior:

  1. Open https://mermaid-js.github.io/mermaid-live-editor on chrome
  2. Open https://mermaid-js.github.io/mermaid-live-editor on Firefox
  3. Works fine on Firefox but text overflows in chrome

Expected behavior
Should work similarly on chrome and firefox.

Screenshots
If applicable, add screenshots to help explain your problem.
Chrome:

image

Firefox:
image

Desktop (please complete the following information):

  • OS: Windows 10, 1080p screen, 15 Inch Laptop (125% UI Scaling)
  • Browser Chrome
  • Version Latest
Triage Bug / Error

Most helpful comment

Try using flowchart instead of graph.

This seems to fix the issue on the latest version of Chrome (v87) and Edge (v87)

All 3 comments

Try using flowchart instead of graph.

This seems to fix the issue on the latest version of Chrome (v87) and Edge (v87)

Try using flowchart instead of graph.

This seems to fix the issue on the latest version of Chrome (v87) and Edge (v87)

Yep, it fixes the issue on chrome and edge - What's the difference between flowchart and graph which fixes it?

Try using flowchart instead of graph.
This seems to fix the issue on the latest version of Chrome (v87) and Edge (v87)

Yep, it fixes the issue on chrome and edge - What's the difference between flowchart and graph which fixes it?

But the edges are rounded, not the sharp one. Is there any configuration parameter for edges curves?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

init-dcat-ap-de picture init-dcat-ap-de  路  3Comments

zumdahl76 picture zumdahl76  路  5Comments

yk-liu picture yk-liu  路  4Comments

pirDOL picture pirDOL  路  3Comments

mestaritonttu picture mestaritonttu  路  3Comments