Skip to content

Commit

Permalink
Prevent flowchart labels from being cut off (#698)
Browse files Browse the repository at this point in the history
Band-aid fix but 🤷.
  • Loading branch information
72636c authored Sep 3, 2024
1 parent f8a5ec6 commit bf19825
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/tidy-suits-beg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'scoobie': patch
---

mermaid: Fix flowchart labels being cut off
5 changes: 5 additions & 0 deletions remark/mermaid/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ g.node foreignObject.label {
overflow-y: visible;
}

g.edgeLabel foreignObject,
g.label foreignObject {
overflow-x: visible;
}

.edgeLabel div {
background-color: var(--mermaid-er-label-fill);
}
Expand Down

0 comments on commit bf19825

Please sign in to comment.