From f485309fd69816dcd025af00717db2b9d422a7dc Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Tue, 21 Apr 2026 13:57:43 +0900 Subject: [PATCH] refac --- src/app.css | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/app.css b/src/app.css index ac02afcb1d..9352177bd8 100644 --- a/src/app.css +++ b/src/app.css @@ -260,10 +260,15 @@ select { display: none; } -/* Hide leaked Mermaid temp containers if render cleanup misses */ +/* Hide leaked Mermaid temp containers if render cleanup misses. + Use visibility:hidden (not display:none) so mermaid can still + measure the SVG layout before extracting its HTML. */ body > div[id^='dmermaid-'], body > iframe[id^='imermaid-'] { - display: none !important; + position: fixed !important; + visibility: hidden !important; + height: 0 !important; + overflow: hidden !important; } .scrollbar-hidden:active::-webkit-scrollbar-thumb,