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/13920

Vanessa887453c8e41b
diff --git a/app/src/layout/dock/index.ts b/app/src/layout/dock/index.ts
index f91adc2bdb..2dcdbfec85 100644
--- a/app/src/layout/dock/index.ts
+++ b/app/src/layout/dock/index.ts
@@ -366,14 +366,13 @@ export class Dock {
if (!reset) {
this.layout.element.style.opacity = "1";
}
- this.layout.element.style.transform = "";
this.layout.element.style.zIndex = (++window.siyuan.zIndex).toString();
if (this.position === "Left") {
- this.layout.element.style.left = `${this.elements[0].clientWidth}px`;
+ this.layout.element.style.transform = `translateX(${this.elements[0].clientWidth}px)`;
} else if (this.position === "Right") {
- this.layout.element.style.right = `${this.elements[0].clientWidth}px`;
+ this.layout.element.style.transform = `translateX(-${this.elements[0].clientWidth}px)`;
} else if (this.position === "Bottom") {
- this.layout.element.style.bottom = `${document.getElementById("status").offsetHeight}px`;
+ this.layout.element.style.transform = `translateY(-${document.getElementById("status").offsetHeight}px)`;
this.layout.element.style.left = this.elements[0].clientWidth + "px";
this.layout.element.style.right = this.elements[1].clientWidth + "px";
}
@@ -405,13 +404,10 @@ export class Dock {
}
if (this.position === "Left") {
this.layout.element.style.transform = `translateX(-${this.layout.element.clientWidth + 8}px)`;
- this.layout.element.style.left = "";
} else if (this.position === "Right") {
this.layout.element.style.transform = `translateX(${this.layout.element.clientWidth + 8}px)`;
- this.layout.element.style.right = "";
} else if (this.position === "Bottom") {
this.layout.element.style.transform = `translateY(${this.layout.element.clientHeight + 8}px)`;
- this.layout.element.style.bottom = "";
}
if (reset) {
return;