Skip to content

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

:bug: https://github.com/siyuan-note/siyuan/issues/18124

Vanessab2fd8c6ad7c1
diff --git a/app/src/layout/dock/index.ts b/app/src/layout/dock/index.ts
index 9d6ac7ef53..265bf72cb4 100644
--- a/app/src/layout/dock/index.ts
+++ b/app/src/layout/dock/index.ts
@@ -309,12 +309,12 @@ export class Dock {
this.pin = !this.pin;
const hasActive = this.elements[0].querySelector(".dock__item--active") ||
this.elements[1].querySelector(".dock__item--active");
+ this.resetDockPosition(hasActive ? true : false);
+ this.layout.element.style.opacity = "";
if (!this.pin) {
- this.resetDockPosition(hasActive ? true : false);
this.resizeElement.classList.add("fn__none");
this.hideDock(true);
} else {
- this.layout.element.style.opacity = "";
this.layout.element.style.transform = "";
this.layout.element.style.zIndex = "";
if (hasActive) {