merge: upstream

This commit is contained in:
Marie 2024-01-09 02:57:57 +01:00
commit 7552cea69a
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828
413 changed files with 5517 additions and 2309 deletions

View file

@ -143,6 +143,7 @@ function top() {
}
function maximize() {
if (rootEl.value == null) return;
maximized.value = true;
unResizedTop = rootEl.value.style.top;
unResizedLeft = rootEl.value.style.left;
@ -155,6 +156,7 @@ function maximize() {
}
function unMaximize() {
if (rootEl.value == null) return;
maximized.value = false;
rootEl.value.style.top = unResizedTop;
rootEl.value.style.left = unResizedLeft;
@ -163,6 +165,7 @@ function unMaximize() {
}
function minimize() {
if (rootEl.value == null) return;
minimized.value = true;
unResizedWidth = rootEl.value.style.width;
unResizedHeight = rootEl.value.style.height;
@ -171,8 +174,8 @@ function minimize() {
}
function unMinimize() {
if (rootEl.value == null) return;
const main = rootEl.value;
if (main == null) return;
minimized.value = false;
rootEl.value.style.width = unResizedWidth;