Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(mobile): move menu button to the right
Elian Doran2dda8f60ed5c
diff --git a/src/public/app/layouts/mobile_layout.js b/src/public/app/layouts/mobile_layout.jsindex 632a4cab05..2d41565446 100644--- a/src/public/app/layouts/mobile_layout.js+++ b/src/public/app/layouts/mobile_layout.js@@ -118,13 +118,7 @@ export default class MobileLayout {return new RootContainer().setParent(appContext).cssBlock(MOBILE_CSS)- .child(new FlexContainer(launcherPaneIsHorizontal ? "row" : "column")- .id("launcher-pane")- .class(launcherPaneIsHorizontal ? "horizontal" : "vertical")- .css(launcherPaneIsHorizontal ? "height" : "width", "53px")- .child(new GlobalMenuWidget(launcherPaneIsHorizontal))- .child(new LauncherContainer(launcherPaneIsHorizontal))- )+ .child(this.#buildLauncherPane(launcherPaneIsHorizontal)).child(new FlexContainer("row").filling().child(new ScreenContainer("tree", 'column')@@ -178,4 +172,25 @@ export default class MobileLayout {.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;+ }}