Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

settings: Fix modal out of screen on mobile.

Gittenburg3a973b15eec4
diff --git a/static/styles/components.scss b/static/styles/components.scss
index a51afa6ac39..8839856e00f 100644
--- a/static/styles/components.scss
+++ b/static/styles/components.scss
@@ -106,30 +106,6 @@ a.no-underline:hover {
}
}
-/* -- flex forms -- */
-.flex-row {
- display: flex;
-
- * {
- box-sizing: border-box;
- }
-
- input[type=text],
- input[type=password] {
- height: auto;
- width: 100%;
- }
-
- &.normal {
- width: 500px;
- }
-
- .field {
- margin: 10px;
- width: 100%;
- }
-}
-
i.zulip-icon.bot {
color: hsl(180, 5%, 74%);
vertical-align: top;
diff --git a/static/styles/settings.scss b/static/styles/settings.scss
index 2bb8d24ade5..b3b241d3e7f 100644
--- a/static/styles/settings.scss
+++ b/static/styles/settings.scss
@@ -111,11 +111,11 @@ h3 .fa-question-circle-o {
}
#change_email_modal {
- width: 460px;
+ max-width: 460px;
}
#change_full_name_modal {
- width: 480px;
+ max-width: 480px;
}
.admin-realm-description {
diff --git a/static/templates/settings/account_settings.hbs b/static/templates/settings/account_settings.hbs
index 81a1f88886a..110564fdf98 100644
--- a/static/templates/settings/account_settings.hbs
+++ b/static/templates/settings/account_settings.hbs
@@ -96,7 +96,7 @@
<h3 class="inline-block" id="change_password_modal_label">{{t "Change password" }}</h3>
<div class="alert-notification change_password_info"></div>
</div>
- <div class="flex-row normal">
+ <div class="modal-body">
<div class="field">
<label for="old_password" class="title">{{t "Old password" }}</label>
<input type="password" autocomplete="off" name="old_password" id="old_password" class="w-200 inline-block" value="" />