mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-09 01:32:29 +08:00
feat(mobile): move menu button to the right
This commit is contained in:
parent
14fa687b9c
commit
2dda8f60ed
@ -118,13 +118,7 @@ export default class MobileLayout {
|
|||||||
return new RootContainer()
|
return new RootContainer()
|
||||||
.setParent(appContext)
|
.setParent(appContext)
|
||||||
.cssBlock(MOBILE_CSS)
|
.cssBlock(MOBILE_CSS)
|
||||||
.child(new FlexContainer(launcherPaneIsHorizontal ? "row" : "column")
|
.child(this.#buildLauncherPane(launcherPaneIsHorizontal))
|
||||||
.id("launcher-pane")
|
|
||||||
.class(launcherPaneIsHorizontal ? "horizontal" : "vertical")
|
|
||||||
.css(launcherPaneIsHorizontal ? "height" : "width", "53px")
|
|
||||||
.child(new GlobalMenuWidget(launcherPaneIsHorizontal))
|
|
||||||
.child(new LauncherContainer(launcherPaneIsHorizontal))
|
|
||||||
)
|
|
||||||
.child(new FlexContainer("row")
|
.child(new FlexContainer("row")
|
||||||
.filling()
|
.filling()
|
||||||
.child(new ScreenContainer("tree", 'column')
|
.child(new ScreenContainer("tree", 'column')
|
||||||
@ -178,4 +172,25 @@ export default class MobileLayout {
|
|||||||
.child(new ConfirmDialog())
|
.child(new ConfirmDialog())
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#buildLauncherPane(isHorizontal) {
|
||||||
|
let launcherPane;
|
||||||
|
|
||||||
|
if (isHorizontal) {
|
||||||
|
launcherPane = new FlexContainer(isHorizontal ? "row" : "column")
|
||||||
|
.class("horizontal")
|
||||||
|
.css("height", "53px")
|
||||||
|
.child(new LauncherContainer(true))
|
||||||
|
.child(new GlobalMenuWidget(true));
|
||||||
|
} else {
|
||||||
|
launcherPane = new FlexContainer(launcherPaneIsHorizontal ? "row" : "column")
|
||||||
|
.class("vertical")
|
||||||
|
.css("width", "53px")
|
||||||
|
.child(new GlobalMenuWidget(false))
|
||||||
|
.child(new LauncherContainer(false));
|
||||||
|
}
|
||||||
|
|
||||||
|
launcherPane.id("launcher-pane");
|
||||||
|
return launcherPane;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user