Skip to content

Build your personal knowledge base with Trilium Notes

feat(client): add CSS root class for layout

Elian Doran801254ce8e6b
diff --git a/src/public/app/layouts/desktop_layout.js b/src/public/app/layouts/desktop_layout.js
index ea6bc3dfc1..e44d496fd4 100644
--- a/src/public/app/layouts/desktop_layout.js
+++ b/src/public/app/layouts/desktop_layout.js
@@ -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())
diff --git a/src/public/app/layouts/mobile_layout.js b/src/public/app/layouts/mobile_layout.js
index 578e2d50ca..adb5424159 100644
--- a/src/public/app/layouts/mobile_layout.js
+++ b/src/public/app/layouts/mobile_layout.js
@@ -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")