stream_settings: Add settings_select class to select elements.

This commit adds settings_select class to select elements in
stream settings, such that we can add CSS using this class and
not using "select" as selector so that we can easily add a select
element in future with different CSS if needed.
This commit is contained in:
Sahil Batra 2023-02-16 15:37:56 +05:30 committed by Tim Abbott
parent 1afc730da7
commit 6bd650bc9f
2 changed files with 3 additions and 3 deletions

View File

@ -985,7 +985,7 @@ div.settings-radio-input-parent {
}
}
select {
.settings_select {
/* Match .setting_desktop_icon_count_display */
width: 325px;
height: fit-content;

View File

@ -31,7 +31,7 @@
<label class="dropdown-title">{{t 'Who can post to the stream?'}}
{{> ../help_link_widget link="/help/stream-sending-policy" }}
</label>
<select name="stream-post-policy" class="stream_post_policy_setting prop-element bootstrap-focus-style" id="id_stream_post_policy" data-setting-widget-type="number">
<select name="stream-post-policy" class="stream_post_policy_setting prop-element settings_select bootstrap-focus-style" id="id_stream_post_policy" data-setting-widget-type="number">
{{#each stream_post_policy_values}}
<option value="{{this.code}}" {{#if (eq this.code ../stream_post_policy) }}selected{{/if}}>
{{ this.description}}
@ -59,7 +59,7 @@
{{> ../settings/upgrade_tip_widget}}
<select name="stream_message_retention_setting"
class="stream_message_retention_setting prop-element bootstrap-focus-style"
class="stream_message_retention_setting prop-element settings_select bootstrap-focus-style"
id="id_message_retention_days"
data-setting-widget-type="message-retention-setting">
<option value="realm_default">{{#tr}}Use organization level settings {org_level_message_retention_setting}{{/tr}}</option>