Skip to content

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

:bug: fix https://github.com/siyuan-note/siyuan/issues/11775

Vanessa4c1753226696
diff --git a/app/src/layout/dock/index.ts b/app/src/layout/dock/index.ts
index 174f04e2f8..a815c2cbe6 100644
--- a/app/src/layout/dock/index.ts
+++ b/app/src/layout/dock/index.ts
@@ -451,9 +451,12 @@ export class Dock {
}
public hideDock(reset = false) {
- if (!reset && (this.layout.element.style.opacity === "0" || this.pin) ||
- this.layout.element.querySelector(".fullscreen") // 关系图全屏不应该退出
- ) {
+ if (!reset && (this.layout.element.style.opacity === "0" || this.pin)) {
+ return;
+ }
+ // 关系图全屏不应该退出 & https://github.com/siyuan-note/siyuan/issues/11775
+ const fullscreenElement = this.layout.element.querySelector(".fullscreen")
+ if (fullscreenElement && fullscreenElement.clientHeight > 0) {
return;
}
// https://github.com/siyuan-note/siyuan/issues/7504