An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: https://github.com/siyuan-note/siyuan/issues/17919
Vanessa5cac46a052c3
diff --git a/app/src/layout/dock/index.ts b/app/src/layout/dock/index.tsindex 708845f8bb..c384f316cc 100644--- a/app/src/layout/dock/index.ts+++ b/app/src/layout/dock/index.ts@@ -751,10 +751,15 @@ export class Dock {}public add(index: number, sourceElement: Element, previousType?: string) {- sourceElement.setAttribute("data-height", "");- sourceElement.setAttribute("data-width", "");const type = sourceElement.getAttribute("data-type") as TDock;const sourceDock = getDockByType(type);+ // 仅在左右轴与下轴之间跨轴移动时清除尺寸:左右侧之间或下侧内部移动,原有尺寸维度仍然有效+ if ((sourceDock.position === "Left" || sourceDock.position === "Right") && this.position === "Bottom") {+ sourceElement.setAttribute("data-width", "");+ }+ if (sourceDock.position === "Bottom" && (this.position === "Left" || this.position === "Right")) {+ sourceElement.setAttribute("data-height", "");+ }if (sourceDock.elements[0].parentElement.querySelectorAll(".dock__item").length === 1) {sourceDock.elements[0].parentElement.classList.add("fn__none");}