From 5100c7b98d348d02bf1d6cf7cde23cf5118b3631 Mon Sep 17 00:00:00 2001 From: EnixCoda Date: Fri, 20 Aug 2021 17:30:28 +0800 Subject: [PATCH] fix: style of folded block would crash on disabling the feature --- src/styles/index.scss | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/styles/index.scss b/src/styles/index.scss index 101585f..5a7a36c 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -95,14 +95,6 @@ $minimal-z-index: max($github-header-z-index, $github-pull-request-float-header- padding-right: 20px; } - // cancel code fold if not wrapped with .gitako-code-fold-mark - .gitako-code-fold-handler { - display: none; - } - .gitako-code-fold-hidden { - display: table-cell; - } - .gitako-code-fold-attached:not(.gitako-code-fold-attached-disabled) { tr { .gitako-code-fold-handler { @@ -154,6 +146,11 @@ $minimal-z-index: max($github-header-z-index, $github-pull-request-float-header- } } + // cancel code fold if not wrapped with .gitako-code-fold-mark + .gitako-code-fold-handler { + display: none; + } + .gitako-code-fold-hidden { display: none; }