From 4c1753226696f176fb9abe91b1b08c706443d902 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 23 Jun 2024 12:39:33 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/11775 --- app/src/layout/dock/index.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/src/layout/dock/index.ts b/app/src/layout/dock/index.ts index 174f04e2f..a815c2cbe 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