settings: Remove settings_text_input class from url type inputs.

This commit removes settings_text_input class from url type inputs
and we instead add the width property to settings_url_input.

Note that we might instead have a single class for all type of inputs
instead of having different classes for url, password and text type
inputs in further commits.
This commit is contained in:
Sahil Batra 2023-06-19 15:27:45 +05:30 committed by Tim Abbott
parent 7d0da75430
commit db825ad202
2 changed files with 3 additions and 2 deletions

View File

@ -383,7 +383,8 @@ td .button {
} }
} }
.settings_text_input { .settings_text_input,
.settings_url_input {
/* 311px + 2 * 6px (padding) + 2 * 1px (border) = 325px (min width of select /* 311px + 2 * 6px (padding) + 2 * 1px (border) = 325px (min width of select
elements in settings) */ elements in settings) */
width: 311px; width: 311px;

View File

@ -21,7 +21,7 @@
value="{{ field_value.value }}" /> value="{{ field_value.value }}" />
<span class="remove_date"><i class="fa fa-close"></i></span> <span class="remove_date"><i class="fa fa-close"></i></span>
{{else if is_url_field }} {{else if is_url_field }}
<input class="custom_user_field_value {{#if for_manage_user_modal}}modal_url_input{{else}}settings_text_input settings_url_input{{/if}}" type="{{ field_type }}" value="{{ field_value.value }}" maxlength="2048" /> <input class="custom_user_field_value {{#if for_manage_user_modal}}modal_url_input{{else}}settings_url_input{{/if}}" type="{{ field_type }}" value="{{ field_value.value }}" maxlength="2048" />
{{else if is_pronouns_field}} {{else if is_pronouns_field}}
<input class="custom_user_field_value pronouns_type_field {{#if for_manage_user_modal}}modal_text_input{{else}}settings_text_input{{/if}}" type="{{ field_type }}" value="{{ field_value.value }}" maxlength="50" /> <input class="custom_user_field_value pronouns_type_field {{#if for_manage_user_modal}}modal_text_input{{else}}settings_text_input{{/if}}" type="{{ field_type }}" value="{{ field_value.value }}" maxlength="50" />
{{else}} {{else}}