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

Vanessa884639cc4d0c
diff --git a/app/src/layout/dock/index.ts b/app/src/layout/dock/index.ts
index 3507a25ed9..f31b262a64 100644
--- a/app/src/layout/dock/index.ts
+++ b/app/src/layout/dock/index.ts
@@ -623,13 +623,19 @@ export class Dock {
}
// dock 显示
if (this.position === "Left") {
- this.layout.element.style.width = this.getMaxSize() + "px";
+ if (this.layout.element.style.width === "0px") {
+ this.layout.element.style.width = this.getMaxSize() + "px";
+ }
this.layout.element.style.marginRight = "var(--b3-layout-space)";
} else if (this.position === "Right") {
- this.layout.element.style.width = this.getMaxSize() + "px";
+ if (this.layout.element.style.width === "0px") {
+ this.layout.element.style.width = this.getMaxSize() + "px";
+ }
this.layout.element.style.marginLeft = "var(--b3-layout-space)";
- } else {
- this.layout.element.style.height = this.getMaxSize() + "px";
+ } else if (this.position === "Bottom") {
+ if (this.layout.element.style.height === "0px") {
+ this.layout.element.style.height = this.getMaxSize() + "px";
+ }
this.layout.element.style.marginTop = "var(--b3-layout-space)";
}
if ((type === "graph" || type === "globalGraph") && this.layout.element.querySelector(".fullscreen")) {