Improved fullscreen window mode

This commit is contained in:
Prozilla 2023-07-30 10:22:06 +02:00
parent 76a5238fb6
commit fe8ec7b4e0
No known key found for this signature in database
GPG key ID: 5858DFE71CAF31EE
3 changed files with 6 additions and 3 deletions

View file

@ -3,7 +3,6 @@
left: 0; left: 0;
bottom: 100%; bottom: 100%;
height: auto !important; height: auto !important;
z-index: -1;
overflow: hidden; overflow: hidden;
} }

View file

@ -73,8 +73,8 @@ export function Window({ id, app, size, position, focused = false, onInteract, o
className={classNames.join(" ")} className={classNames.join(" ")}
ref={nodeRef} ref={nodeRef}
style={{ style={{
width: maximized ? screenWidth : size.x, width: maximized ? null : size.x,
height: maximized ? screenHeight : size.y, height: maximized ? null : size.y,
}} }}
onClick={onInteract} onClick={onInteract}
> >

View file

@ -31,7 +31,11 @@
} }
.Window-container.Maximized { .Window-container.Maximized {
width: 100%;
height: calc(100% - var(--task-bar-height));
border-radius: 0;
transform: none !important; transform: none !important;
resize: none;
} }
.Header { .Header {