mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-18 00:02:28 +08:00
feat(client): add CSS root class for layout
This commit is contained in:
parent
48a27710d6
commit
801254ce8e
@ -98,6 +98,7 @@ export default class DesktopLayout {
|
|||||||
|
|
||||||
return new RootContainer(launcherPaneIsHorizontal)
|
return new RootContainer(launcherPaneIsHorizontal)
|
||||||
.setParent(appContext)
|
.setParent(appContext)
|
||||||
|
.class((launcherPaneIsHorizontal ? "horizontal" : "vertical") + "-layout")
|
||||||
.optChild(launcherPaneIsHorizontal, new FlexContainer('row')
|
.optChild(launcherPaneIsHorizontal, new FlexContainer('row')
|
||||||
.child(new TabRowWidget().class("full-width"))
|
.child(new TabRowWidget().class("full-width"))
|
||||||
.child(new TitleBarButtonsWidget())
|
.child(new TitleBarButtonsWidget())
|
||||||
|
@ -117,6 +117,7 @@ export default class MobileLayout {
|
|||||||
|
|
||||||
return new RootContainer(launcherPaneIsHorizontal)
|
return new RootContainer(launcherPaneIsHorizontal)
|
||||||
.setParent(appContext)
|
.setParent(appContext)
|
||||||
|
.class((launcherPaneIsHorizontal ? "horizontal" : "vertical") + "-layout")
|
||||||
.cssBlock(MOBILE_CSS)
|
.cssBlock(MOBILE_CSS)
|
||||||
.child(this.#buildLauncherPane(launcherPaneIsHorizontal))
|
.child(this.#buildLauncherPane(launcherPaneIsHorizontal))
|
||||||
.child(new FlexContainer("row")
|
.child(new FlexContainer("row")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user