fix(plugin-md-power): incorrect collapsed lines in code-tree, close #587 (#588)

This commit is contained in:
pengzhanbo 2025-05-10 08:24:47 +08:00 committed by GitHub
parent bd0e9404da
commit 9fef6654ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -126,6 +126,13 @@ onMounted(() => {
border-bottom-left-radius: 0;
}
@media (min-width: 768px) {
.vp-code-tree .code-tree-panel .vp-file-tree,
.vp-code-tree .code-panel [class*="language-"] {
overscroll-behavior: contain;
}
}
.vp-code-tree .code-panel .code-block-title {
display: none;
height: 100%;
@ -141,6 +148,15 @@ onMounted(() => {
border-radius: 0;
}
.vp-code-tree .code-panel div[class*="language-"].has-collapsed-lines.collapsed {
height: auto;
overflow: auto;
}
.vp-code-tree .code-panel div[class*="language-"].has-collapsed-lines .collapsed-lines {
display: none;
}
.vp-code-tree .code-panel .code-tree-empty {
display: flex;
align-items: center;