feat(native-buttons): allow drag behind title area

This commit is contained in:
Elian Doran 2024-12-04 23:21:04 +02:00
parent 8d2a8ead04
commit 9d98c4a661
No known key found for this signature in database
2 changed files with 6 additions and 1 deletions

View File

@ -101,6 +101,7 @@ export default class DesktopLayout {
.class((launcherPaneIsHorizontal ? "horizontal" : "vertical") + "-layout")
.optChild(fullWidthTabBar, new FlexContainer('row')
.class("tab-row-container")
.child(new FlexContainer( "row").id("tab-row-left-spacer"))
.child(new LeftPaneToggleWidget(true))
.child(new TabRowWidget().class("full-width"))
.css('height', '40px')

View File

@ -1276,8 +1276,12 @@ textarea {
color: var(--muted-text-color);
}
#tab-row-left-spacer {
width: env(titlebar-area-x);
-webkit-app-region: drag;
}
.tab-row-container {
padding-left: env(titlebar-area-x);
margin-right: calc(100vw, env(titlebar-area-width, 100vw));
}