mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-07-22 13:53:43 -04:00
Fixed sequence diagrams in Firefox
This commit is contained in:
@@ -337,9 +337,10 @@ line {
|
||||
stroke: var(--md-mermaid-edge-color);
|
||||
}
|
||||
|
||||
/* Sequence message and loop text */
|
||||
/* Sequence message, loop and note text */
|
||||
.messageText,
|
||||
.loopText > tspan {
|
||||
.loopText > tspan,
|
||||
.noteText > tspan {
|
||||
font-family: var(--md-mermaid-font-family) !important;
|
||||
fill: var(--md-mermaid-edge-color);
|
||||
stroke: none;
|
||||
|
||||
@@ -92,7 +92,12 @@ export function mountMermaid(
|
||||
.pipe(
|
||||
tap(() => mermaid.initialize({
|
||||
startOnLoad: false,
|
||||
themeCSS
|
||||
themeCSS,
|
||||
sequence: {
|
||||
actorFontSize: "16px", // Hack: mitigate https://bit.ly/3y0NEi3
|
||||
messageFontSize: "16px",
|
||||
noteFontSize: "16px"
|
||||
}
|
||||
})),
|
||||
map(() => undefined),
|
||||
shareReplay(1)
|
||||
|
||||
Reference in New Issue
Block a user