dendronhq / dendron

The personal knowledge management (PKM) tool that grows as you do!
https://wiki.dendron.so
Apache License 2.0
6.52k stars 247 forks source link

Text in Mermaid graph nodes overflows boxes #658

Open jeffbarr opened 3 years ago

jeffbarr commented 3 years ago

Please select the area your Bug applys to. (Multiple selections are Possible)

Describe the bug

Text in a Mermaid graph overflows the box.

To Reproduce

Steps to reproduce the behavior:

  1. Go to a Markdown page
  2. Enter the graph below
  3. Open the Dendron preview
  4. See that the text overflows the box

Expected behavior

Text fits inside the box

Sample graph

graph TD;
    A[Daily]-->B[Personal TODO];
    A-->C[Work TODO];
    A-->D[Calendar];
    A-->E[LinkedIn];

Screenshots

dd_mermaid_overflow

Desktop (please complete the following information)

Additional context

Add any other context about the problem here.

Dendron Log file

Please attach the output of >Dev:Dendron: Open Logs here

kpathakota commented 3 years ago

This will likely get improved with the changes required for #643 but for now, it's in a component that we only tangentially own (markdown previewer). We should do a check once 643 is closed though.

micharris42 commented 2 years ago

The text overflow issues appears to have been fixed since Dendron switched to its own preview.

Should this issue be marked as Closed?

kevinslin commented 2 years ago

Yep. The only issue is that preview v2 doesn't currently support export to pdf which I think @jeffbarr might need. Will keep this open until we have https://github.com/dendronhq/dendron/issues/1204 implemented