mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-03 14:19:58 +08:00
fix(mobile): layout on tablet mode
This commit is contained in:
parent
7fc60bfc8f
commit
f63f308659
@ -118,21 +118,23 @@ export default class MobileLayout {
|
|||||||
.class("horizontal-layout")
|
.class("horizontal-layout")
|
||||||
.cssBlock(MOBILE_CSS)
|
.cssBlock(MOBILE_CSS)
|
||||||
.child(new FlexContainer("column")
|
.child(new FlexContainer("column")
|
||||||
.filling()
|
.id("mobile-sidebar-container")
|
||||||
.id("mobile-sidebar-wrapper")
|
|
||||||
.child(new QuickSearchWidget())
|
|
||||||
.child(new NoteTreeWidget()
|
|
||||||
.cssBlock(FANCYTREE_CSS))
|
|
||||||
)
|
)
|
||||||
.child(new FlexContainer("row")
|
.child(new FlexContainer("row")
|
||||||
.filling()
|
.filling()
|
||||||
.child(new SidebarContainer("tree", 'column')
|
.child(new SidebarContainer("tree", 'column')
|
||||||
.class("d-sm-flex d-md-flex d-lg-flex d-xl-flex col-12 col-sm-5 col-md-4 col-lg-3 col-xl-3")
|
.class("d-sm-flex d-md-flex d-lg-flex d-xl-flex col-12 col-sm-5 col-md-4 col-lg-3 col-xl-3")
|
||||||
.id("mobile-sidebar-container")
|
.id("mobile-sidebar-wrapper")
|
||||||
.css("max-height", "100%")
|
.css("max-height", "100%")
|
||||||
.css('padding-left', "0")
|
.css('padding-left', "0")
|
||||||
.css('padding-right', "0")
|
.css('padding-right', "0")
|
||||||
.css('contain', 'content'))
|
.css('contain', 'content')
|
||||||
|
.child(new FlexContainer("column")
|
||||||
|
.filling()
|
||||||
|
.id("mobile-sidebar-wrapper")
|
||||||
|
.child(new QuickSearchWidget())
|
||||||
|
.child(new NoteTreeWidget()
|
||||||
|
.cssBlock(FANCYTREE_CSS))))
|
||||||
.child(new ScreenContainer("detail", "column")
|
.child(new ScreenContainer("detail", "column")
|
||||||
.class("d-sm-flex d-md-flex d-lg-flex d-xl-flex col-12 col-sm-7 col-md-8 col-lg-9")
|
.class("d-sm-flex d-md-flex d-lg-flex d-xl-flex col-12 col-sm-7 col-md-8 col-lg-9")
|
||||||
.css("padding-left", "0")
|
.css("padding-left", "0")
|
||||||
|
@ -1209,6 +1209,12 @@ body:not(.mobile) #launcher-pane.horizontal .dropdown-submenu > .dropdown-menu {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (min-width: 992px) {
|
||||||
|
#mobile-sidebar-wrapper {
|
||||||
|
transform: none !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#launcher-pane {
|
#launcher-pane {
|
||||||
color: var(--launcher-pane-text-color);
|
color: var(--launcher-pane-text-color);
|
||||||
background-color: var(--launcher-pane-background-color);
|
background-color: var(--launcher-pane-background-color);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user