From fbfaec50b6d31867e319eb7f288bdb3d04d9105b Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Tue, 30 Aug 2022 21:40:45 +0200 Subject: [PATCH] fix: temp fix mermaid svg height (#304) --- src/sass/_shortcodes.scss | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/sass/_shortcodes.scss b/src/sass/_shortcodes.scss index 5e5af5a..e2811bd 100644 --- a/src/sass/_shortcodes.scss +++ b/src/sass/_shortcodes.scss @@ -238,4 +238,10 @@ // {{< mermaid >}} .gblog-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; + } }