From ca1c8af16d60cc40cd64fea03a49ae3f14a54248 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 20 Feb 2025 12:10:39 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/13899 --- app/src/protyle/breadcrumb/action.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/src/protyle/breadcrumb/action.ts b/app/src/protyle/breadcrumb/action.ts index 3962a98e7..d07c5f145 100644 --- a/app/src/protyle/breadcrumb/action.ts +++ b/app/src/protyle/breadcrumb/action.ts @@ -96,6 +96,15 @@ export const fullscreen = (element: Element, btnElement?: Element) => { } } }); + if ("darwin" !== window.siyuan.config.system.os) { + const windowControlsElement = document.getElementById("windowControls"); + if (isFullscreen) { + windowControlsElement.style.zIndex = ""; + } else { + window.siyuan.zIndex++; + windowControlsElement.style.zIndex = window.siyuan.zIndex.toString(); + } + } /// #endif };