Skip to content

Build your personal knowledge base with Trilium Notes

feat(options/apperance): hide layout orientation section

Elian Doran06a439e95de1
diff --git a/src/public/app/widgets/type_widgets/options/appearance/theme.ts b/src/public/app/widgets/type_widgets/options/appearance/theme.ts
index 3031ac2d4c..52b23355ab 100644
--- a/src/public/app/widgets/type_widgets/options/appearance/theme.ts
+++ b/src/public/app/widgets/type_widgets/options/appearance/theme.ts
@@ -67,6 +67,9 @@ export default class ThemeOptions extends OptionsWidget {
utils.reloadFrontendApp("layout orientation change");
});
+ const $layoutOrientationSection = $(this.$widget[0]);
+ $layoutOrientationSection.toggleClass("hidden-ext", utils.isMobile());
+
this.$themeSelect.on("change", async () => {
const newTheme = this.$themeSelect.val();