mirror of
https://github.com/jackyzha0/quartz.git
synced 2026-03-24 15:05:42 -05:00
fix selectors for explorer
This commit is contained in:
parent
195fc5134c
commit
bb6ccfeba8
@ -54,9 +54,8 @@ function toggleFolder(evt: MouseEvent) {
|
||||
}
|
||||
|
||||
function setupExplorer() {
|
||||
const explorer = document.getElementById("explorer")
|
||||
if (!explorer) return
|
||||
|
||||
const buttons = document.querySelectorAll("button#explorer") as NodeListOf<HTMLButtonElement>
|
||||
for (const explorer of buttons) {
|
||||
if (explorer.dataset.behavior === "collapse") {
|
||||
for (const item of document.getElementsByClassName(
|
||||
"folder-button",
|
||||
@ -101,6 +100,7 @@ function setupExplorer() {
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
window.addEventListener("resize", setupExplorer)
|
||||
document.addEventListener("nav", () => {
|
||||
|
||||
@ -192,6 +192,7 @@ a {
|
||||
& .sidebar.right {
|
||||
right: calc(calc(100vw - $pageWidth) / 2 - $sidePanelWidth);
|
||||
flex-wrap: wrap;
|
||||
flex-direction: column;
|
||||
& > * {
|
||||
@media all and (max-width: $fullPageWidth) {
|
||||
flex: 1;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user