From 9baa4b39bcaafe048d05362c7dea3001872b643b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Sun, 1 Oct 2023 13:57:58 +0200 Subject: [PATCH] mermaid: #656 --- static/css/theme.css | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/static/css/theme.css b/static/css/theme.css index 8f0c273b60..3d3c12521e 100644 --- a/static/css/theme.css +++ b/static/css/theme.css @@ -1319,10 +1319,15 @@ html[dir="rtl"] .expand > .expand-label > i.fa-chevron-right { .mermaid { border: 1px solid transparent; - display: inline; + /* don't use display: none, as this will cause no renderinge by Mermaid */ + visibility: hidden; padding: .5rem .5rem 0 .5rem; } -.mermaid.zoom { +.mermaid.mermaid-render { + display: inline; + visibility: visible; +} +.mermaid.mermaid-render.zoom { display: inline-block; position: relative; width: 100%;