feat(client): add CSS root class for layout

This commit is contained in:
Elian Doran 2024-11-28 21:28:37 +02:00
parent 48a27710d6
commit 801254ce8e
No known key found for this signature in database
2 changed files with 2 additions and 0 deletions

View File

@ -98,6 +98,7 @@ export default class DesktopLayout {
return new RootContainer(launcherPaneIsHorizontal)
.setParent(appContext)
.class((launcherPaneIsHorizontal ? "horizontal" : "vertical") + "-layout")
.optChild(launcherPaneIsHorizontal, new FlexContainer('row')
.child(new TabRowWidget().class("full-width"))
.child(new TitleBarButtonsWidget())

View File

@ -117,6 +117,7 @@ export default class MobileLayout {
return new RootContainer(launcherPaneIsHorizontal)
.setParent(appContext)
.class((launcherPaneIsHorizontal ? "horizontal" : "vertical") + "-layout")
.cssBlock(MOBILE_CSS)
.child(this.#buildLauncherPane(launcherPaneIsHorizontal))
.child(new FlexContainer("row")