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/15192

Vanessa768280747a16
diff --git a/app/src/protyle/breadcrumb/action.ts b/app/src/protyle/breadcrumb/action.ts
index 515cdd3cbb..6edd6a2dd8 100644
--- a/app/src/protyle/breadcrumb/action.ts
+++ b/app/src/protyle/breadcrumb/action.ts
@@ -62,7 +62,7 @@ export const fullscreen = (element: Element, btnElement?: Element) => {
/// #endif
}
/// #if !MOBILE
- if ("darwin" !== window.siyuan.config.system.os) {
+ if ("darwin" !== window.siyuan.config.system.os && !isWindow()) {
const windowControlsElement = document.getElementById("windowControls");
if (isFullscreen) {
windowControlsElement.style.zIndex = "";
@@ -107,15 +107,6 @@ 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
};