mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-05-18 14:34:23 +02:00
Fix folder/tag page
This commit is contained in:
parent
139573ffd6
commit
836f2a87ad
@ -44,7 +44,7 @@ export const defaultListPageLayout: PageLayout = {
|
||||
Component.MobileOnly(Component.Spacer()),
|
||||
Component.Search(),
|
||||
Component.Darkmode(),
|
||||
Component.DesktopOnly(Component.Explorer()),
|
||||
Component.Explorer(),
|
||||
],
|
||||
right: [],
|
||||
}
|
||||
|
@ -62,7 +62,7 @@ function toggleExplorer(this: HTMLElement) {
|
||||
if (!content) return
|
||||
content.classList.toggle("collapsed")
|
||||
//content.style.maxHeight = content.style.maxHeight === "0px" ? content.scrollHeight + "px" : "0px"
|
||||
content.style.maxHeight = content.style.maxHeight === "0px" ? "100vh" : "0px"
|
||||
content.style.maxHeight = content.style.maxHeight === "0px" ? "100dvh" : "0px"
|
||||
|
||||
//prevent scroll under
|
||||
if (document.querySelector("#mobile-explorer")) {
|
||||
|
@ -9,6 +9,7 @@
|
||||
display: flex;
|
||||
}
|
||||
@media all and ($mobile) {
|
||||
order: -1;
|
||||
.mobile-explorer {
|
||||
display: flex;
|
||||
}
|
||||
@ -236,6 +237,7 @@
|
||||
}
|
||||
|
||||
#mobile-explorer {
|
||||
margin: 5px;
|
||||
&:not(.collapsed) .lucide-menu {
|
||||
transform: rotate(90deg);
|
||||
transition: transform 200ms ease-in-out;
|
||||
@ -277,5 +279,6 @@
|
||||
@media all and ($mobile) {
|
||||
.lock-scroll {
|
||||
position: fixed;
|
||||
width: calc(100% - 2rem);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user