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.

modals: Fix extra bottom margin due to default list styling.

Sayam Samalec16386fe83f
diff --git a/web/styles/modal.css b/web/styles/modal.css
index 07a532f5e92..0d5b14dc110 100644
--- a/web/styles/modal.css
+++ b/web/styles/modal.css
@@ -1008,6 +1008,11 @@ ul.modal-options-list {
margin-bottom: 0;
}
+.modal__content .modal-options-list {
+ /* Override default value for <ul> in bootstrap.app.css */
+ margin-bottom: 0;
+}
+
/* ==============================================================
* END MODAL MARGIN OVERRIDES
* ============================================================== */
diff --git a/web/templates/confirm_dialog/confirm_delete_detached_attachments.hbs b/web/templates/confirm_dialog/confirm_delete_detached_attachments.hbs
index 25024b71fd5..372deaaebb2 100644
--- a/web/templates/confirm_dialog/confirm_delete_detached_attachments.hbs
+++ b/web/templates/confirm_dialog/confirm_delete_detached_attachments.hbs
@@ -11,7 +11,7 @@
{{/tr}}
{{/if}}
</div>
-<ul>
+<ul class="modal-options-list">
{{#each attachments_list}}
<li>
<a href="/user_uploads/{{this.path_id}}" rel="noopener noreferrer" target="_blank">{{this.name}}</a>
diff --git a/web/templates/confirm_dialog/confirm_delete_profile_field_option.hbs b/web/templates/confirm_dialog/confirm_delete_profile_field_option.hbs
index 682b59254ec..a3ddee40bb9 100644
--- a/web/templates/confirm_dialog/confirm_delete_profile_field_option.hbs
+++ b/web/templates/confirm_dialog/confirm_delete_profile_field_option.hbs
@@ -19,7 +19,7 @@
{{t "Deleted options:" }}
{{/if}}
</div>
-<ul>
+<ul class="modal-options-list">
{{#each deleted_values}}
<li>{{this}}</li>
{{/each}}
diff --git a/web/templates/stream_settings/first_stream_created_modal.hbs b/web/templates/stream_settings/first_stream_created_modal.hbs
index 59e0ce14b6d..4df9fd8059a 100644
--- a/web/templates/stream_settings/first_stream_created_modal.hbs
+++ b/web/templates/stream_settings/first_stream_created_modal.hbs
@@ -1,5 +1,5 @@
{{t 'You will now see the channel you created. To go back to channel settings, you can:' }}
-<ul>
+<ul class="modal-options-list">
<li>
{{#tr}}
Click on <z-stream></z-stream> at the top of your Zulip window.