Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/17751

Vanessace9836495840
diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.ts
index e398c85786..9b696c76ba 100644
--- a/app/src/protyle/gutter/index.ts
+++ b/app/src/protyle/gutter/index.ts
@@ -2598,11 +2598,19 @@ export class Gutter {
return;
}
} else {
+ // https://github.com/siyuan-note/siyuan/issues/17751 第一点
+ this.element.classList.add("fn__none");
+ this.element.innerHTML = "";
return;
}
}
let topElement = getTopAloneElement(nodeElement);
+ // https://github.com/siyuan-note/siyuan/issues/17751 第二点
+ if (topElement === nodeElement.parentElement && nodeElement.childElementCount > 3 &&
+ nodeElement.classList.contains("li")) {
+ topElement = nodeElement;
+ }
// 提示下方仅有单个列表
if (topElement.classList.contains("callout") && !nodeElement.classList.contains("callout") &&
getParentBlock(nodeElement) !== topElement) {