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/5972
Vanessad85ede2b4871
diff --git a/app/src/block/Panel.ts b/app/src/block/Panel.tsindex 66b00608c1..643b55a54a 100644--- a/app/src/block/Panel.ts+++ b/app/src/block/Panel.ts@@ -61,7 +61,6 @@ export class BlockPanel {if (this.element && window.siyuan.blockPanels.length > 1) {this.element.classList.add("block__popover--top");}-let targetElement = hasClosestByClassName(event.target, "block__icons");let type = "move";let x = event.clientX - parseInt(this.element.style.left);@@ -190,7 +189,7 @@ export class BlockPanel {const index = parseInt(editorElement.getAttribute("data-index"));const editor = new Protyle(editorElement, {blockId: this.nodeIds[index],- defId: this.defIds[index] ||this.defIds[0] || "",+ defId: this.defIds[index] || this.defIds[0] || "",action: [Constants.CB_GET_ALL],render: {gutter: true,diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.tsindex 890ae46ccb..4f3785d432 100644--- a/app/src/protyle/toolbar/index.ts+++ b/app/src/protyle/toolbar/index.ts@@ -840,6 +840,7 @@ export class Toolbar {if (hasClosestByClassName(event.target as HTMLElement, "block__icon")) {return;}+ event.stopPropagation();const documentSelf = document;this.subElement.style.userSelect = "none";const x = event.clientX - parseInt(this.subElement.style.left);