Skip to content

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

:art: fix https://github.com/siyuan-note/siyuan/issues/5087

Vanessa51747939ace7
diff --git a/app/src/util/Tree.ts b/app/src/util/Tree.ts
index 0449dde73c..c630f69eb5 100644
--- a/app/src/util/Tree.ts
+++ b/app/src/util/Tree.ts
@@ -76,7 +76,7 @@ ${item.label ? "data-label='" + item.label + "'" : ""}>
<svg data-id="${encodeURIComponent(item.name + item.depth)}" class="b3-list-item__arrow ${((item.children && item.children.length > 0) || (item.blocks && item.blocks.length > 0)) ? "b3-list-item__arrow--open" : "fn__hidden"}"><use xlink:href="#iconRight"></use></svg>
</span>
${iconHTML}
- <span class="b3-list-item__text">${item.name}</span>
+ <span class="b3-list-item__text"${item.type === "outline" ? ' title="' + item.name + '"' : ""}>${item.name}</span>
${countHTML}
</li>`;
if (item.children && item.children.length > 0) {