Skip to content

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

:art: Use mind map gutter icons and remove the list view toolbar button https://github.com/siyuan-note/siyuan/issues/18831

Vanessa990165e6728c
diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.ts
index 1fed094c83..5cd349efb4 100644
--- a/app/src/protyle/gutter/index.ts
+++ b/app/src/protyle/gutter/index.ts
@@ -3785,7 +3785,8 @@ export class Gutter {
type,
subtype: nodeElement.getAttribute("data-subtype"),
nodeID: dataNodeId,
- icon: getIconByType(type, nodeElement.getAttribute("data-subtype")),
+ icon: type === "NodeList" && nodeElement.getAttribute(Constants.CUSTOM_SY_LIST_MINDMAP) === "1" ?
+ "iconMindmap" : getIconByType(type, nodeElement.getAttribute("data-subtype")),
embedID,
viewOccurrenceID,
popoverHTML,
diff --git a/app/src/protyle/render/listMindmap/view.ts b/app/src/protyle/render/listMindmap/view.ts
index d9336f8f5b..a352608c0a 100644
--- a/app/src/protyle/render/listMindmap/view.ts
+++ b/app/src/protyle/render/listMindmap/view.ts
@@ -354,7 +354,6 @@ export class ListMindmapView {
this.buttons.set(id, button);
this.toolbar.append(button);
};
- add("exit", "listMindmapToList", "iconList", () => this.options.onExit());
this.toolbar.append(createElement("span", "list-mindmap__spacer fn__flex-1"));
if (!this.options.readOnly) {
add("relation", "connect", "iconRoute", () => {