From 2e1098d3e3e8b0a7da29e62308ac9071a8ca771a Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Tue, 30 Aug 2022 10:00:53 +0200 Subject: [PATCH] fix: temp fix mermaid svg height (#488) --- src/sass/_shortcodes.scss | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/sass/_shortcodes.scss b/src/sass/_shortcodes.scss index 4cc42fe..6dea13c 100644 --- a/src/sass/_shortcodes.scss +++ b/src/sass/_shortcodes.scss @@ -192,6 +192,12 @@ // {{< mermaid >}} .gdoc-mermaid { font-family: "Liberation Sans", sans-serif; + + // Fix height of mermaid SVG elements (see https://github.com/mermaid-js/mermaid/issues/2481) + > svg { + height: 100%; + padding: $padding-8; + } } // {{< propertylist >}}