A platform for community discussion. Free, open, simple.
UX: improvements on Welcome banner config page (#36301)
Yuriy Kurant981a4ef0e8d1
diff --git a/app/assets/stylesheets/admin/admin_config_area.scss b/app/assets/stylesheets/admin/admin_config_area.scssindex 2358778f9c8..904e5901783 100644--- a/app/assets/stylesheets/admin/admin_config_area.scss+++ b/app/assets/stylesheets/admin/admin_config_area.scss@@ -280,3 +280,14 @@}}}++.admin-welcome-banner-form {+ #control-enabledThemes {+ .form-kit__container-content.--large {+ .d-multi-select-trigger__selection-label {+ // show selection full names (overrides unnecessary truncation)+ max-width: unset;+ }+ }+ }+}diff --git a/config/locales/client.en.yml b/config/locales/client.en.ymlindex 1a7a01c5c19..d001ed0f7ef 100644--- a/config/locales/client.en.yml+++ b/config/locales/client.en.yml@@ -5921,11 +5921,13 @@ en:enabled_themes:label: "Enabled on themes..."description: "Select which themes should display the banner. Only active themes are shown."+ select_label: "Select themes"background_image:label: "Background image"description: "This image will be displayed behind the banner text."text_color:label: "Text color"+ description: "When 'Background image' above is uploaded, use this setting to change the banner text color to ensure it remains readable. When left blank or without background image uploaded, the active theme controls the color."page_visibility:label: "Page visibility"description: "Choose where the banner should be displayed."diff --git a/frontend/discourse/admin/components/admin-welcome-banner-form.gjs b/frontend/discourse/admin/components/admin-welcome-banner-form.gjsindex 3c39ddb4d19..f2f373800c7 100644--- a/frontend/discourse/admin/components/admin-welcome-banner-form.gjs+++ b/frontend/discourse/admin/components/admin-welcome-banner-form.gjs@@ -313,12 +313,16 @@ export default class AdminWelcomeBannerForm extends Component {@description={{i18n"admin.config.welcome_banner.form.enabled_themes.description"}}+ @format="large"as |field|><field.Custom><DMultiSelect@loadFn={{this.loadThemes}}@selection={{field.value}}+ @label={{i18n+ "admin.config.welcome_banner.form.enabled_themes.select_label"+ }}@onChange={{field.set}}><:selection as |theme|>@@ -348,6 +352,9 @@ export default class AdminWelcomeBannerForm extends Component {<form.Field@name="welcomeBannerTextColor"@title={{i18n "admin.config.welcome_banner.form.text_color.label"}}+ @description={{i18n+ "admin.config.welcome_banner.form.text_color.description"+ }}@format="large"as |field|>