Skip to content

Commit 26a7126

Browse files
committed
vault backup: 2024-07-02T12:43:44
Affected files: quartz/components/scripts/explorer.inline.ts
1 parent 30d7dbe commit 26a7126

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

quartz/components/scripts/explorer.inline.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { FolderState } from "../ExplorerNode"
1+
import { FolderState } from "../ExplorerNode";
22

33
type MaybeHTMLElement = HTMLElement | undefined
44
let currentExplorerState: FolderState[]
@@ -21,7 +21,8 @@ function toggleExplorer(this: HTMLElement) {
2121
if (!content) return
2222

2323
content.classList.toggle("collapsed")
24-
content.style.maxHeight = content.style.maxHeight === "0px" ? content.scrollHeight + "px" : "0px"
24+
// content.style.maxHeight = content.style.maxHeight === "0px" ? content.scrollHeight + "px" : "0px"
25+
content.style.height = "100%"
2526
}
2627

2728
function toggleFolder(evt: MouseEvent) {

0 commit comments

Comments
 (0)