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: Preserve dock spacing until collapse completes https://github.com/siyuan-note/siyuan/issues/19383
Danielc480d569fa20
diff --git a/app/src/assets/scss/business/_layout.scss b/app/src/assets/scss/business/_layout.scssindex 27b4ced569..28f75c5abf 100644--- a/app/src/assets/scss/business/_layout.scss+++ b/app/src/assets/scss/business/_layout.scss@@ -26,6 +26,11 @@overflow: hidden;}+ &--closing:not(.layout--float) {+ // 面板完全收起后再移除间距,避免动画末尾的圆角贴合+ transition: var(--b3-width-transition), height .2s cubic-bezier(0, 0, .2, 1) 0ms, margin 0s linear .2s;+ }+&--no-transition {transition: none !important;}diff --git a/app/src/layout/dock/index.ts b/app/src/layout/dock/index.tsindex 757d5f39ca..7c34c8822c 100644--- a/app/src/layout/dock/index.ts+++ b/app/src/layout/dock/index.ts@@ -517,6 +517,7 @@ export class Dock {}private resetDockPosition(show: boolean, preferredSize?: number) {+ this.layout.element.classList.remove("layout--closing");const size = typeof preferredSize === "number" && preferredSize > 0 ? preferredSize : this.getCurrentSize();if (this.position === "Left") {this.layout.element.setAttribute("style", `${show ? "margin-right: var(--b3-layout-space);" : ""}width:${size}px;opacity:${show ? 1 : 0};min-height:8px;`);@@ -705,6 +706,7 @@ export class Dock {this.panelVisible = true;this.collapsedPanelSize = "";this.layout.element.classList.remove("fn__none");+ this.layout.element.classList.add("layout--closing");if (this.position === "Left") {this.layout.element.style.width = "0px";this.layout.element.style.marginRight = "0px";@@ -881,6 +883,7 @@ export class Dock {});}// dock 显示+ this.layout.element.classList.remove("layout--closing");if (this.position === "Left") {if (this.layout.element.style.width === "0px") {this.layout.element.style.width = this.getMaxSize() + "px";