mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-30 21:38:48 +01:00
This commit is contained in:
parent
146d8a271d
commit
7e283e1cae
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue