Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
compose_banners: Structure innner <p> elements with .banner_message class.
Karl Stolleyfe8fc989128f
diff --git a/web/styles/compose.css b/web/styles/compose.cssindex cdb5589a7a2..af879d80d7f 100644--- a/web/styles/compose.css+++ b/web/styles/compose.css@@ -294,9 +294,10 @@flex-wrap: wrap;}- & .banner_content,- & > p {- margin: 0; /* override bootstrap */+ & .banner_content {+ /* Override Bootstrap when .banner_content is+ a paragraph element. */+ margin: 0;/* 5px right padding + 10px left-margin of the neighbouring button will match the left padding */padding: 8px 5px 8px 15px;/* The banner text uses a flex-basis of 150px,@@ -304,6 +305,13 @@text lines are still comfortably readable.Still, it can grow and shrink as needed. */flex: 1 1 150px;++ & .banner_message {+ /* Override Bootstrap when .banner_content+ contains an inner .banner_message+ paragraph. */+ margin: 0;+ }}.main-view-banner-action-button,diff --git a/web/templates/compose_banner/not_subscribed_warning.hbs b/web/templates/compose_banner/not_subscribed_warning.hbsindex 6da358f7a75..a809195bd1d 100644--- a/web/templates/compose_banner/not_subscribed_warning.hbs+++ b/web/templates/compose_banner/not_subscribed_warning.hbs@@ -1,7 +1,9 @@{{#> compose_banner }}- {{#if can_subscribe_other_users}}- <p>{{#tr}}<strong>{name}</strong> is not subscribed to this stream. They will not be notified unless you subscribe them.{{/tr}}</p>- {{else}}- <p>{{#tr}}<strong>{name}</strong> is not subscribed to this stream. They will not be notified if you mention them.{{/tr}}</p>- {{/if}}+ <p class="banner_message">+ {{#if can_subscribe_other_users}}+ {{#tr}}<strong>{name}</strong> is not subscribed to this stream. They will not be notified unless you subscribe them.{{/tr}}+ {{else}}+ {{#tr}}<strong>{name}</strong> is not subscribed to this stream. They will not be notified if you mention them.{{/tr}}+ {{/if}}+ </p>{{/compose_banner}}diff --git a/web/templates/compose_banner/private_stream_warning.hbs b/web/templates/compose_banner/private_stream_warning.hbsindex dbc662fc28a..e64678393b3 100644--- a/web/templates/compose_banner/private_stream_warning.hbs+++ b/web/templates/compose_banner/private_stream_warning.hbs@@ -1,3 +1,5 @@{{#> compose_banner }}- <p>{{#tr}}Warning: <strong>#{stream_name}</strong> is a private stream.{{/tr}}</p>+ <p class="banner_message">+ {{#tr}}Warning: <strong>#{stream_name}</strong> is a private stream.{{/tr}}+ </p>{{/compose_banner}}diff --git a/web/templates/compose_banner/stream_does_not_exist_error.hbs b/web/templates/compose_banner/stream_does_not_exist_error.hbsindex 25e1e80830a..beda3cd6aff 100644--- a/web/templates/compose_banner/stream_does_not_exist_error.hbs+++ b/web/templates/compose_banner/stream_does_not_exist_error.hbs@@ -1,5 +1,5 @@{{#> compose_banner }}- <p>+ <p class="banner_message">{{#tr}}The stream <b>#{stream_name}</b> does not exist. Manage your subscriptions<z-link>on your Streams page</z-link>.diff --git a/web/templates/compose_banner/unmute_topic_banner.hbs b/web/templates/compose_banner/unmute_topic_banner.hbsindex 6794b9ba4e4..77ef7a1e910 100644--- a/web/templates/compose_banner/unmute_topic_banner.hbs+++ b/web/templates/compose_banner/unmute_topic_banner.hbs@@ -1,5 +1,5 @@{{#> compose_banner }}- <p>+ <p class="banner_message">{{#if (eq muted_narrow "stream")}}{{#tr}}Your message was sent to a stream you have muted.{{/tr}}{{else if (eq muted_narrow "topic")}}diff --git a/web/templates/compose_banner/wildcard_warning.hbs b/web/templates/compose_banner/wildcard_warning.hbsindex 1bd0985d63e..7f4eb1eefb8 100644--- a/web/templates/compose_banner/wildcard_warning.hbs+++ b/web/templates/compose_banner/wildcard_warning.hbs@@ -1,5 +1,5 @@{{#> compose_banner }}- <p>+ <p class="banner_message">{{#tr}}Are you sure you want to send @-mention notifications to the <strong>{subscriber_count}</strong> users subscribed to #{stream_name}? If not, please edit your message to remove the <strong>@{wildcard_mention}</strong> mention.{{/tr}}