Skip to content

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

:art: fix https://github.com/siyuan-note/siyuan/issues/7508

Vanessa6ba7eae21277
diff --git a/app/src/layout/dock/index.ts b/app/src/layout/dock/index.ts
index c7ca2256cb..b18624d49c 100644
--- a/app/src/layout/dock/index.ts
+++ b/app/src/layout/dock/index.ts
@@ -218,12 +218,13 @@ export class Dock {
if (!reset) {
this.layout.element.style.opacity = "1";
}
+ this.layout.element.style.transform = "";
if (this.position === "Left") {
- this.layout.element.style.transform = `translateX(${this.element.clientWidth}px)`;
+ this.layout.element.style.left = `${this.element.clientWidth}px`;
} else if (this.position === "Right") {
- this.layout.element.style.transform = `translateX(-${this.element.clientWidth}px)`;
+ this.layout.element.style.right = `${this.element.clientWidth}px`;
} else if (this.position === "Bottom") {
- this.layout.element.style.transform = `translateY(-${this.element.offsetHeight + document.getElementById("status").offsetHeight}px)`;
+ this.layout.element.style.bottom = `${this.element.offsetHeight + document.getElementById("status").offsetHeight}px`;
}
}
@@ -235,10 +236,13 @@ 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;