Skip to content

Commit 43e38e1

Browse files
authored
Merge pull request #22 from SAP/mermaid-css
Fix line-height in mermaid diagrams
2 parents 06675c3 + a88a58d commit 43e38e1

File tree

3 files changed

+63
-177
lines changed

3 files changed

+63
-177
lines changed

docs/.vitepress/theme/custom.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,4 +106,8 @@
106106
.VPFeatures .items .item:nth-child(3) .VPFeature .box .title {
107107
font-weight: 600;
108108
color: var(--vp-c-brand-1);
109+
}
110+
/* Override VitePress paragraph line-height specifically for Mermaid diagrams. Other configs cause issues (text overflowing) in multi-line diagrams */
111+
.vp-doc .mermaid p {
112+
line-height: 24px !important;
109113
}

0 commit comments

Comments
 (0)