From 1c6bed55e4e800b5bad7150f6bdd274cd7f6504e Mon Sep 17 00:00:00 2001 From: Sahil Batra Date: Mon, 27 Mar 2023 13:54:27 +0530 Subject: [PATCH] modals: Add modal_text_input class to text inputs. This commit adds modal_text_input class to text inputs in modals to set width of them as set by bootstrap. This class is used to set the width of inputs to 206px, as we will be removing the boostrap rule which sets width of the input in further commits. --- web/styles/modal.css | 4 ++++ web/templates/change_email_modal.hbs | 2 +- web/templates/dialog_change_password.hbs | 4 ++-- web/templates/embedded_bot_config_item.hbs | 2 +- web/templates/move_topic_to_stream.hbs | 2 +- web/templates/settings/add_alert_word.hbs | 2 +- web/templates/settings/add_emoji.hbs | 2 +- web/templates/settings/add_new_bot_form.hbs | 4 ++-- .../settings/add_new_custom_profile_field_form.hbs | 4 ++-- web/templates/settings/add_user_group_modal.hbs | 2 +- web/templates/settings/api_key_modal.hbs | 2 +- web/templates/settings/custom_user_profile_field.hbs | 8 ++++---- web/templates/settings/edit_bot_form.hbs | 6 +++--- web/templates/settings/edit_custom_profile_field_form.hbs | 4 ++-- web/templates/settings/edit_embedded_bot_service.hbs | 2 +- web/templates/settings/edit_outgoing_webhook_service.hbs | 2 +- web/templates/settings/realm_domains_modal.hbs | 2 +- .../stream_settings/change_stream_info_modal.hbs | 2 +- .../user_group_settings/change_user_group_info_modal.hbs | 2 +- web/templates/user_profile_modal.hbs | 2 +- 20 files changed, 32 insertions(+), 28 deletions(-) diff --git a/web/styles/modal.css b/web/styles/modal.css index 8b753369a0..8cc7676361 100644 --- a/web/styles/modal.css +++ b/web/styles/modal.css @@ -347,3 +347,7 @@ background-color: hsl(0deg 0% 90%); } } + +.modal_text_input { + width: 206px; +} diff --git a/web/templates/change_email_modal.hbs b/web/templates/change_email_modal.hbs index c30e5ecf62..de2f25c73b 100644 --- a/web/templates/change_email_modal.hbs +++ b/web/templates/change_email_modal.hbs @@ -1,4 +1,4 @@
- +
diff --git a/web/templates/dialog_change_password.hbs b/web/templates/dialog_change_password.hbs index 343b46a30f..02eb1aef71 100644 --- a/web/templates/dialog_change_password.hbs +++ b/web/templates/dialog_change_password.hbs @@ -1,7 +1,7 @@
- +
{{t "Forgot it?" }} @@ -9,7 +9,7 @@
-
diff --git a/web/templates/embedded_bot_config_item.hbs b/web/templates/embedded_bot_config_item.hbs index f61232837e..4050216ea4 100644 --- a/web/templates/embedded_bot_config_item.hbs +++ b/web/templates/embedded_bot_config_item.hbs @@ -1,5 +1,5 @@
-
diff --git a/web/templates/move_topic_to_stream.hbs b/web/templates/move_topic_to_stream.hbs index e8ca28bd03..7b8cd7c21a 100644 --- a/web/templates/move_topic_to_stream.hbs +++ b/web/templates/move_topic_to_stream.hbs @@ -11,7 +11,7 @@ list_placeholder=(t 'Filter streams')}}
- + {{#if from_message_actions_popover}} diff --git a/web/templates/settings/add_alert_word.hbs b/web/templates/settings/add_alert_word.hbs index 65b382b1aa..28e8bf2eee 100644 --- a/web/templates/settings/add_alert_word.hbs +++ b/web/templates/settings/add_alert_word.hbs @@ -1,4 +1,4 @@ - + diff --git a/web/templates/settings/add_emoji.hbs b/web/templates/settings/add_emoji.hbs index 60aaf49bf0..facb882de8 100644 --- a/web/templates/settings/add_emoji.hbs +++ b/web/templates/settings/add_emoji.hbs @@ -12,6 +12,6 @@
- +
diff --git a/web/templates/settings/add_new_bot_form.hbs b/web/templates/settings/add_new_bot_form.hbs index 44ff274021..f6d7e92fd7 100644 --- a/web/templates/settings/add_new_bot_form.hbs +++ b/web/templates/settings/add_new_bot_form.hbs @@ -23,13 +23,13 @@
-
- -bot@{{ realm_bot_domain }}
diff --git a/web/templates/settings/add_new_custom_profile_field_form.hbs b/web/templates/settings/add_new_custom_profile_field_form.hbs index 2026eec11d..558d5d3e5e 100644 --- a/web/templates/settings/add_new_custom_profile_field_form.hbs +++ b/web/templates/settings/add_new_custom_profile_field_form.hbs @@ -19,11 +19,11 @@
- +
- +
diff --git a/web/templates/settings/add_user_group_modal.hbs b/web/templates/settings/add_user_group_modal.hbs index 8457ce5332..179775bcfe 100644 --- a/web/templates/settings/add_user_group_modal.hbs +++ b/web/templates/settings/add_user_group_modal.hbs @@ -1,7 +1,7 @@
- +
diff --git a/web/templates/settings/api_key_modal.hbs b/web/templates/settings/api_key_modal.hbs index 1546c26d52..dde209cc64 100644 --- a/web/templates/settings/api_key_modal.hbs +++ b/web/templates/settings/api_key_modal.hbs @@ -14,7 +14,7 @@

{{t "Please re-enter your password to confirm your identity." }}

- +

diff --git a/web/templates/settings/custom_user_profile_field.hbs b/web/templates/settings/custom_user_profile_field.hbs index 3bfd531bd3..9352cf935f 100644 --- a/web/templates/settings/custom_user_profile_field.hbs +++ b/web/templates/settings/custom_user_profile_field.hbs @@ -17,15 +17,15 @@

{{else if is_date_field }} - {{else if is_url_field }} - + {{else if is_pronouns_field}} - + {{else}} - + {{/if}}
diff --git a/web/templates/settings/edit_bot_form.hbs b/web/templates/settings/edit_bot_form.hbs index f56d02dd60..f74a1f5b51 100644 --- a/web/templates/settings/edit_bot_form.hbs +++ b/web/templates/settings/edit_bot_form.hbs @@ -2,16 +2,16 @@
- +
- +