Vanessa 2025-02-20 12:10:39 +08:00 committed by Daniel
parent ca1c8af16d
commit e79339a511
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -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");