fix: style of folded block would crash on disabling the feature

This commit is contained in:
EnixCoda 2021-08-20 17:30:28 +08:00
parent ab9c5686ca
commit 5100c7b98d

View file

@ -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;
}