Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/13899

Vanessae79339a5112c
diff --git a/app/src/protyle/breadcrumb/action.ts b/app/src/protyle/breadcrumb/action.ts
index d07c5f1457..515cdd3cbb 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");