Skip to content

Commit bf19825

Browse files
authored
Prevent flowchart labels from being cut off (#698)
Band-aid fix but 🤷.
1 parent f8a5ec6 commit bf19825

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.changeset/tidy-suits-beg.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'scoobie': patch
3+
---
4+
5+
mermaid: Fix flowchart labels being cut off

remark/mermaid/style.css

+5
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ g.node foreignObject.label {
8282
overflow-y: visible;
8383
}
8484

85+
g.edgeLabel foreignObject,
86+
g.label foreignObject {
87+
overflow-x: visible;
88+
}
89+
8590
.edgeLabel div {
8691
background-color: var(--mermaid-er-label-fill);
8792
}

0 commit comments

Comments
 (0)