mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-26 15:01:32 +08:00
feat(mobile): move launch bar at the bottom
This commit is contained in:
parent
ccc46dc410
commit
59ba3bf2a6
@ -119,12 +119,6 @@ export default class MobileLayout {
|
||||
.setParent(appContext)
|
||||
.class("horizontal-layout")
|
||||
.cssBlock(MOBILE_CSS)
|
||||
.child(new FlexContainer("row")
|
||||
.class("horizontal")
|
||||
.css("height", "53px")
|
||||
.child(new LauncherContainer(true))
|
||||
.child(new GlobalMenuWidget(true))
|
||||
.id("launcher-pane"))
|
||||
.child(new FlexContainer("row")
|
||||
.filling()
|
||||
.child(new ScreenContainer("tree", 'column')
|
||||
@ -177,6 +171,12 @@ export default class MobileLayout {
|
||||
)
|
||||
.child(new ProtectedSessionPasswordDialog())
|
||||
.child(new ConfirmDialog())
|
||||
);
|
||||
)
|
||||
.child(new FlexContainer("row")
|
||||
.class("horizontal")
|
||||
.css("height", "53px")
|
||||
.child(new LauncherContainer(true))
|
||||
.child(new GlobalMenuWidget(true))
|
||||
.id("launcher-pane"));
|
||||
}
|
||||
}
|
||||
|
@ -21,6 +21,7 @@
|
||||
|
||||
:root {
|
||||
--submenu-opening-delay: 300ms;
|
||||
--launcher-pane-size: 53px;
|
||||
}
|
||||
|
||||
html {
|
||||
@ -1174,7 +1175,8 @@ body:not(.mobile) #launcher-pane.horizontal .dropdown-submenu > .dropdown-menu {
|
||||
|
||||
body.mobile #launcher-pane .dropdown-menu.show {
|
||||
position: fixed !important;
|
||||
top: var(--launcher-pane-size) !important;
|
||||
bottom: var(--launcher-pane-size) !important;
|
||||
top: unset !important;
|
||||
left: 0 !important;
|
||||
right: 0 !important;
|
||||
transform: unset !important;
|
||||
|
Loading…
x
Reference in New Issue
Block a user