mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-24 05:14:06 -06:00
🎨 formatting and fixing error
This commit is contained in:
parent
c0f80b6d61
commit
ac1c0a24a2
@ -1,11 +1,8 @@
|
|||||||
import { JSX } from "preact"
|
import { JSX } from "preact"
|
||||||
|
|
||||||
const OverflowList = ({
|
const OverflowList = ({ children, ...props }: JSX.HTMLAttributes<HTMLUListElement>) => {
|
||||||
children,
|
|
||||||
...props
|
|
||||||
}: JSX.HTMLAttributes<HTMLUListElement> & { id: string }) => {
|
|
||||||
return (
|
return (
|
||||||
<ul {...props} class={[props.class, "overflow"].filter(Boolean).join(" ")} id={props.id}>
|
<ul {...props} class={[props.class, "overflow"].filter(Boolean).join(" ")}>
|
||||||
{children}
|
{children}
|
||||||
<li class="overflow-end" />
|
<li class="overflow-end" />
|
||||||
</ul>
|
</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
|
if (!ul) return
|
||||||
|
|
||||||
const end = ul.querySelector(".overflow-end")
|
const end = ul.querySelector(".overflow-end")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user