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