Skip to content
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

There are some nodes where the content suddenly disappears #5698

Open
yegao opened this issue Aug 7, 2024 · 2 comments
Open

There are some nodes where the content suddenly disappears #5698

yegao opened this issue Aug 7, 2024 · 2 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@yegao
Copy link

yegao commented Aug 7, 2024

Description

When I open my mermaidchart project
。There are some nodes where the content suddenly disappears。

截屏2024-08-07 19 33 29

Steps to reproduce

open https://www.mermaidchart.com ,and create a mermaidchart project.

Screenshots

截屏2024-08-07 19 33 29 Some noe has content in editor, but display nothing.

Code Sample

No response

Setup

  • Mermaid version:
  • Browser and Version: [Chrome, Edge, Firefox]

Suggested Solutions

No response

Additional Context

No response

@dylan-partly
Copy link

dylan-partly commented Sep 12, 2024

ive found if you have more than 22 chars on a node, the text disappears

![Screenshot from 2024-09-12 17-06-52](https://github.com/user-attachments/assets/56960848-c1c2-46a4-b12c-269
Screenshot from 2024-09-12 17-06-46

is fine on chrome, only breaks on firefox

@JakubKoralewski
Copy link

JakubKoralewski commented Sep 18, 2024

I can't reproduce this in mermaid.live, but in Github Preview the below is an empty node (Firefox):

flowchart TB
   B["asdasdaaaaaaaaaaaaa sadsdadddddddddd"]
Loading

Adding %%{init: {"flowchart": {"htmlLabels": false}} }%% before the flowchart seems to fix it!:

%%{init: {"flowchart": {"htmlLabels": false}} }%%
flowchart TB
   B["asdasdaaaaaaaaaaaaa sadsdadddddddddd"]
Loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

No branches or pull requests

3 participants