fix(app): keep the window draggable by its tab bar while a dialog is open (#11766)

Co-authored-by: meanaverage <18336095+meanaverage@users.noreply.github.com>
This commit is contained in:
meanaverageandmeanaverage authored and GitHub committed 2026-10-06 22:10:47 +02:00
1 parent 6e8645760b
commit 54869e108a
1 file changed
+12
+12
View File
@@ -13,6 +13,18 @@ body {
-webkit-app-region: no-drag;
}
// A dialog covers the whole window, tab bar included, so the window couldn't be moved while one was open: keep a
// strip the height of the tab bar draggable. The dialog box itself is below it and stays no-drag.
.modal::before {
content: '';
position: fixed;
top: 0;
left: 0;
right: 0;
height: calc(38px * var(--spaciness, 1));
-webkit-app-region: drag;
}
.selectable {
user-select: text;
}