mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-26 23:11:34 +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)
|
.setParent(appContext)
|
||||||
.class("horizontal-layout")
|
.class("horizontal-layout")
|
||||||
.cssBlock(MOBILE_CSS)
|
.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")
|
.child(new FlexContainer("row")
|
||||||
.filling()
|
.filling()
|
||||||
.child(new ScreenContainer("tree", 'column')
|
.child(new ScreenContainer("tree", 'column')
|
||||||
@ -177,6 +171,12 @@ export default class MobileLayout {
|
|||||||
)
|
)
|
||||||
.child(new ProtectedSessionPasswordDialog())
|
.child(new ProtectedSessionPasswordDialog())
|
||||||
.child(new ConfirmDialog())
|
.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 {
|
:root {
|
||||||
--submenu-opening-delay: 300ms;
|
--submenu-opening-delay: 300ms;
|
||||||
|
--launcher-pane-size: 53px;
|
||||||
}
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
@ -1174,7 +1175,8 @@ body:not(.mobile) #launcher-pane.horizontal .dropdown-submenu > .dropdown-menu {
|
|||||||
|
|
||||||
body.mobile #launcher-pane .dropdown-menu.show {
|
body.mobile #launcher-pane .dropdown-menu.show {
|
||||||
position: fixed !important;
|
position: fixed !important;
|
||||||
top: var(--launcher-pane-size) !important;
|
bottom: var(--launcher-pane-size) !important;
|
||||||
|
top: unset !important;
|
||||||
left: 0 !important;
|
left: 0 !important;
|
||||||
right: 0 !important;
|
right: 0 !important;
|
||||||
transform: unset !important;
|
transform: unset !important;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user