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.

dialog_widget: Include error element for compact modals.

Sahil Batra8b1ea7a5b7ff
diff --git a/web/styles/modal.css b/web/styles/modal.css
index 00b9a9103e6..af6635e7660 100644
--- a/web/styles/modal.css
+++ b/web/styles/modal.css
@@ -587,6 +587,10 @@
margin-bottom: 10px;
}
+.modal__header #dialog_error {
+ margin-top: 10px;
+}
+
#read_receipts_modal {
.modal__container {
width: 25.7142em; /* 360px at 14px em */
diff --git a/web/templates/dialog_widget.hbs b/web/templates/dialog_widget.hbs
index 3b24d2d315d..eb9f3380903 100644
--- a/web/templates/dialog_widget.hbs
+++ b/web/templates/dialog_widget.hbs
@@ -13,6 +13,9 @@
{{> help_link_widget . }}
{{/if}}
</h1>
+ {{#if is_compact}}
+ <div class="alert" id="dialog_error"></div>
+ {{/if}}
{{#if modal_subtitle_html}}
<div class="modal__subtitle">
{{{ modal_subtitle_html }}}