Skip to content

Commit

Permalink
Fixed sequence diagrams in Firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Sep 30, 2022
1 parent ebe186a commit 60ea10a
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion material/base.html
Expand Up @@ -245,7 +245,7 @@
</script>
{% endblock %}
{% block scripts %}
<script src="{{ 'assets/javascripts/bundle.e21f8df8.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.078830c0.min.js' | url }}"></script>
{% for path in config.extra_javascript %}
<script src="{{ path | url }}"></script>
{% endfor %}
Expand Down
Expand Up @@ -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;
Expand Down
Expand Up @@ -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)
Expand Down

0 comments on commit 60ea10a

Please sign in to comment.