Improved fullscreen window mode
This commit is contained in:
parent
76a5238fb6
commit
fe8ec7b4e0
3 changed files with 6 additions and 3 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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}
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue