From e79339a5112c41d3bae423d5f2e5322e1ceada24 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 | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/src/protyle/breadcrumb/action.ts b/app/src/protyle/breadcrumb/action.ts index d07c5f145..515cdd3cb 100644 --- a/app/src/protyle/breadcrumb/action.ts +++ b/app/src/protyle/breadcrumb/action.ts @@ -61,6 +61,17 @@ export const fullscreen = (element: Element, btnElement?: Element) => { }); /// #endif } + /// #if !MOBILE + 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 if (btnElement) { if (isFullscreen) { btnElement.querySelector("use").setAttribute("xlink:href", "#iconFullscreen");