From 9e2e84a721dffbc3898e2f4d69b99ee7bea27850 Mon Sep 17 00:00:00 2001 From: 3y3 <3y3@ya.ru> Date: Sat, 2 Dec 2023 16:17:24 +0300 Subject: [PATCH] fix: Change hidden tabs rendering mode Render hidden tabs with visibility hidden instead of display none. This allow to properly compute internal dimentions. --- src/runtime/scss/tabs.scss | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/runtime/scss/tabs.scss b/src/runtime/scss/tabs.scss index b7524a9..85d919c 100644 --- a/src/runtime/scss/tabs.scss +++ b/src/runtime/scss/tabs.scss @@ -48,7 +48,8 @@ } .yfm-tab-panel { - display: none; + visibility: hidden; + height: 0; &:first-child { margin-top: 0 !important; @@ -59,6 +60,7 @@ } &.active { - display: block; + visibility: visible; + height: auto; } }