mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 16:58:49 +01:00
This commit is contained in:
parent
5783233e69
commit
768280747a
1 changed files with 1 additions and 10 deletions
|
|
@ -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
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue