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: Avoid duplicate separators in read-only block menus
Daniele277aa49b190
diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.tsindex 9541ab2666..3c410fe87b 100644--- a/app/src/protyle/gutter/index.ts+++ b/app/src/protyle/gutter/index.ts@@ -2381,7 +2381,9 @@ export class Gutter {this.genWidths([nodeElement], protyle);// this.genHeights([nodeElement], protyle);}- window.siyuan.menus.menu.append(new MenuItem({id: "separator_4", type: "separator"}).element);+ if (type !== "NodeThematicBreak" || !protyle.disabled) {+ window.siyuan.menus.menu.append(new MenuItem({id: "separator_4", type: "separator"}).element);+ }if (window.siyuan.config.cloudRegion === 0 &&!["NodeThematicBreak", "NodeBlockQueryEmbed", "NodeIFrame", "NodeHTMLBlock", "NodeWidget", "NodeVideo", "NodeAudio"].includes(type) &&getContenteditableElement(nodeElement)?.textContent.trim() !== "" &&