An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: fix https://github.com/siyuan-note/siyuan/issues/9833
Vanessab166fd87cd72
diff --git a/app/src/util/Tree.ts b/app/src/util/Tree.tsindex 0e891086ca..c6fa75da21 100644--- a/app/src/util/Tree.ts+++ b/app/src/util/Tree.ts@@ -83,15 +83,15 @@ export class Tree {} else {style = `padding-left: ${(item.depth - 1) * 18 + 22}px;margin-right: 2px`;}+ const showArrow = hasChild || (item.type === "backlink" && !isMobile());html += `<li class="b3-list-item${isMobile() ? "" : " b3-list-item--hide-action"}"-${(item.nodeType !== "NodeDocument" && item.type === "backlink") ? 'draggable="true" ' : ""}${item.id ? 'data-node-id="' + item.id + '"' : ""}${item.box ? 'data-notebook-id="' + item.box + '"' : ""}data-treetype="${item.type}"data-type="${item.nodeType}"data-subtype="${item.subType}"${item.label ? "data-label='" + item.label + "'" : ""}>- <span style="${style}" class="b3-list-item__toggle${(item.type === "backlink" || hasChild) ? " b3-list-item__toggle--hl" : ""}${hasChild || item.type === "backlink" ? "" : " fn__hidden"}">+ <span style="${style}" class="b3-list-item__toggle${showArrow ? " b3-list-item__toggle--hl" : ""}${showArrow ? "" : " fn__hidden"}"><svg data-id="${encodeURIComponent(item.name + item.depth)}" class="b3-list-item__arrow${hasChild ? " b3-list-item__arrow--open" : ""}"><use xlink:href="#iconRight"></use></svg></span>${iconHTML}@@ -140,14 +140,13 @@ ${item.label ? "data-label='" + item.label + "'" : ""}>} else {style = `padding-left: ${(item.depth - 1) * 18 + 22}px;margin-right: 2px`;}- html += `<li ${type === "backlink" ? 'draggable="true"' : ""}-class="b3-list-item${isMobile() ? "" : " b3-list-item--hide-action"}"+ html += `<li class="b3-list-item${isMobile() ? "" : " b3-list-item--hide-action"}"data-node-id="${item.id}"data-ref-text="${encodeURIComponent(item.refText)}"data-def-id="${item.defID}"data-type="${item.type}"data-subtype="${item.subType}"-data-treetype="${type}"+data-treetype="${type}"data-def-path="${item.defPath}"><span style="${style}" class="b3-list-item__toggle${item.children ? " b3-list-item__toggle--hl" : ""}${item.children ? "" : " fn__hidden"}"><svg data-id="${item.id}" class="b3-list-item__arrow"><use xlink:href="#iconRight"></use></svg>