Vanessa 2023-05-03 18:46:52 +08:00
parent 146d8a271d
commit 7e283e1cae

View file

@ -31,7 +31,7 @@ export const renderBacklink = (protyle: IProtyle, backlinkData: {
export const foldPassiveType = (expand: boolean, element: HTMLElement | DocumentFragment) => {
if (element.firstElementChild.classList.contains("li")) {
if (expand) {
element.querySelectorAll(".li .li .li").forEach(item => {
element.querySelectorAll(".li .li").forEach(item => {
if (item.childElementCount > 3) {
item.setAttribute("fold", "1");
}