mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-23 12:54:06 -06:00
🎨 formatting and fixing error
This commit is contained in:
parent
c0f80b6d61
commit
ac1c0a24a2
@ -1,11 +1,8 @@
|
||||
import { JSX } from "preact"
|
||||
|
||||
const OverflowList = ({
|
||||
children,
|
||||
...props
|
||||
}: JSX.HTMLAttributes<HTMLUListElement> & { id: string }) => {
|
||||
const OverflowList = ({ children, ...props }: JSX.HTMLAttributes<HTMLUListElement>) => {
|
||||
return (
|
||||
<ul {...props} class={[props.class, "overflow"].filter(Boolean).join(" ")} id={props.id}>
|
||||
<ul {...props} class={[props.class, "overflow"].filter(Boolean).join(" ")}>
|
||||
{children}
|
||||
<li class="overflow-end" />
|
||||
</ul>
|
||||
@ -34,7 +31,7 @@ document.addEventListener("nav", (e) => {
|
||||
}
|
||||
})
|
||||
|
||||
const ul = document.querySelector("ul[data-list-number='${dataId}']")
|
||||
const ul = document.querySelector("ul[data-list-id='${dataId}']")
|
||||
if (!ul) return
|
||||
|
||||
const end = ul.querySelector(".overflow-end")
|
||||
|
||||
@ -267,4 +267,4 @@ li:has(> .folder-outer:not(.open)) > .folder-container > svg {
|
||||
@media all and ($mobile) {
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user