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/14450

Vanessafde9cbe1cc7a
diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.ts
index 12e7b3824f..4026895721 100644
--- a/app/src/protyle/gutter/index.ts
+++ b/app/src/protyle/gutter/index.ts
@@ -2364,7 +2364,10 @@ data-type="fold" style="cursor:inherit;"><svg style="width: 10px${fold && fold =
if (type === "NodeBlockquote") {
space += 8;
}
- if (nodeElement.isSameNode(wysiwyg.firstElementChild) ||
+ if ((
+ !nodeElement.previousElementSibling &&
+ (nodeElement.isSameNode(wysiwyg.firstElementChild) || nodeElement.parentElement.classList.contains("sb"))
+ ) ||
(nodeElement.previousElementSibling && nodeElement.previousElementSibling.getAttribute("data-node-id"))) {
// 前一个块存在时,只显示到当前层级
hideParent = true;