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 alignment of deactivate buttons in account settings.

Nirvedh Harpalb0b8427c7feb
diff --git a/web/styles/settings.css b/web/styles/settings.css
index 0f1fdaf8918..0ab5b864644 100644
--- a/web/styles/settings.css
+++ b/web/styles/settings.css
@@ -105,8 +105,11 @@ h3,
cursor: not-allowed;
}
-#account-settings .deactivate_realm_button {
- margin-left: 10px;
+#account-settings .deactivate-buttons-group {
+ display: flex;
+ align-items: center;
+ gap: 0.5em;
+ flex-wrap: wrap;
}
#change_email_button,
@@ -2124,12 +2127,6 @@ label.preferences-radio-choice-label {
}
}
-@media (width < $mm_min) {
- .deactivate_realm_button {
- margin-top: 20px;
- }
-}
-
@media only screen and (width < $lg_min) {
/* Show bot-information-box at full width on small
screen sizes. Not having this media query breaks the
diff --git a/web/templates/settings/account_settings.hbs b/web/templates/settings/account_settings.hbs
index 27b0774f665..521edea539c 100644
--- a/web/templates/settings/account_settings.hbs
+++ b/web/templates/settings/account_settings.hbs
@@ -68,7 +68,7 @@
{{/if}}
</form>
- <div class="input-group">
+ <div class="input-group deactivate-buttons-group">
<div id="deactivate_account_container" class="inline-block {{#if user_is_only_organization_owner}}disabled_setting_tooltip{{/if}}">
{{> ../components/action_button
label=(t "Deactivate account")
@@ -83,7 +83,7 @@
label=(t "Deactivate organization")
attention="quiet"
intent="danger"
- custom_classes="deactivate_realm_button inline-block"
+ custom_classes="deactivate_realm_button"
}}
{{/if}}
</div>