mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-13 04:13:19 +08:00
feat(native-buttons): allow drag behind title area
This commit is contained in:
parent
8d2a8ead04
commit
9d98c4a661
@ -101,6 +101,7 @@ export default class DesktopLayout {
|
|||||||
.class((launcherPaneIsHorizontal ? "horizontal" : "vertical") + "-layout")
|
.class((launcherPaneIsHorizontal ? "horizontal" : "vertical") + "-layout")
|
||||||
.optChild(fullWidthTabBar, new FlexContainer('row')
|
.optChild(fullWidthTabBar, new FlexContainer('row')
|
||||||
.class("tab-row-container")
|
.class("tab-row-container")
|
||||||
|
.child(new FlexContainer( "row").id("tab-row-left-spacer"))
|
||||||
.child(new LeftPaneToggleWidget(true))
|
.child(new LeftPaneToggleWidget(true))
|
||||||
.child(new TabRowWidget().class("full-width"))
|
.child(new TabRowWidget().class("full-width"))
|
||||||
.css('height', '40px')
|
.css('height', '40px')
|
||||||
|
@ -1276,8 +1276,12 @@ textarea {
|
|||||||
color: var(--muted-text-color);
|
color: var(--muted-text-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#tab-row-left-spacer {
|
||||||
|
width: env(titlebar-area-x);
|
||||||
|
-webkit-app-region: drag;
|
||||||
|
}
|
||||||
|
|
||||||
.tab-row-container {
|
.tab-row-container {
|
||||||
padding-left: env(titlebar-area-x);
|
|
||||||
margin-right: calc(100vw, env(titlebar-area-width, 100vw));
|
margin-right: calc(100vw, env(titlebar-area-width, 100vw));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user