From 6e83f05ba9f1b4def2196242ab172ec81ff99ccc Mon Sep 17 00:00:00 2001 From: Sami Viitanen Date: Thu, 14 Nov 2024 11:32:09 +0200 Subject: [PATCH] Set max-width for quick themes container in sidebar menu settings tab --- .../scripts/tim/sidebarmenu/tabs/settings-tab.component.scss | 3 +++ .../scripts/tim/sidebarmenu/tabs/settings-tab.component.ts | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 timApp/static/scripts/tim/sidebarmenu/tabs/settings-tab.component.scss diff --git a/timApp/static/scripts/tim/sidebarmenu/tabs/settings-tab.component.scss b/timApp/static/scripts/tim/sidebarmenu/tabs/settings-tab.component.scss new file mode 100644 index 000000000..d292a6ddb --- /dev/null +++ b/timApp/static/scripts/tim/sidebarmenu/tabs/settings-tab.component.scss @@ -0,0 +1,3 @@ +.quick-theme-container { + max-width: 20em; +} \ No newline at end of file diff --git a/timApp/static/scripts/tim/sidebarmenu/tabs/settings-tab.component.ts b/timApp/static/scripts/tim/sidebarmenu/tabs/settings-tab.component.ts index 377fa46a4..b27e3d026 100644 --- a/timApp/static/scripts/tim/sidebarmenu/tabs/settings-tab.component.ts +++ b/timApp/static/scripts/tim/sidebarmenu/tabs/settings-tab.component.ts @@ -61,7 +61,7 @@ export function notifyUserPrefsChanged(settings: ISettings) { Document settings
Quick themes
-
+
+ `, + styleUrls: ["./settings-tab.component.scss"], }) export class SettingsTabComponent implements OnInit { hideVars: IVisibilityVars = getVisibilityVars();