From 06a439e95de13cf6e1038e14a79dc7c5344434c4 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Thu, 27 Feb 2025 19:31:25 +0200 Subject: [PATCH] feat(options/apperance): hide layout orientation section --- .../app/widgets/type_widgets/options/appearance/theme.ts | 3 +++ 1 file changed, 3 insertions(+) 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 3031ac2d4..52b23355a 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();