Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/17384

Vanessa106a9582256e
diff --git a/app/src/layout/dock/index.ts b/app/src/layout/dock/index.ts
index f31b262a64..125bcf6739 100644
--- a/app/src/layout/dock/index.ts
+++ b/app/src/layout/dock/index.ts
@@ -459,13 +459,19 @@ export class Dock {
!this.elements[1].querySelector(".dock__item--active")) {
if (this.position === "Left") {
this.layout.element.style.width = "0px";
- this.layout.element.style.marginRight = "0px";
+ setTimeout(() => {
+ this.layout.element.style.marginRight = "0px";
+ }, Constants.TIMEOUT_TRANSITION);
} else if (this.position === "Right") {
this.layout.element.style.width = "0px";
- this.layout.element.style.marginLeft = "0px";
+ setTimeout(() => {
+ this.layout.element.style.marginLeft = "0px";
+ }, Constants.TIMEOUT_TRANSITION);
} else {
this.layout.element.style.height = "0px";
- this.layout.element.style.marginTop = "0px";
+ setTimeout(() => {
+ this.layout.element.style.marginTop = "0px";
+ }, Constants.TIMEOUT_TRANSITION);
}
this.resizeElement.classList.add("fn__none");
clearTimeout(this.hideResizeTimeout);