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

Vanessa8ed198b0e728
diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.ts
index 2a8a8c4d3f..12e7b3824f 100644
--- a/app/src/protyle/gutter/index.ts
+++ b/app/src/protyle/gutter/index.ts
@@ -2364,7 +2364,8 @@ data-type="fold" style="cursor:inherit;"><svg style="width: 10px${fold && fold =
if (type === "NodeBlockquote") {
space += 8;
}
- if (nodeElement.previousElementSibling && nodeElement.previousElementSibling.getAttribute("data-node-id")) {
+ if (nodeElement.isSameNode(wysiwyg.firstElementChild) ||
+ (nodeElement.previousElementSibling && nodeElement.previousElementSibling.getAttribute("data-node-id"))) {
// 前一个块存在时,只显示到当前层级
hideParent = true;
// 由于折叠块的第二个子块在界面上不显示,因此移除块标 https://github.com/siyuan-note/siyuan/issues/14304