diff --git a/web/src/compose.js b/web/src/compose.js index 1563b31252..d6fa7c4775 100644 --- a/web/src/compose.js +++ b/web/src/compose.js @@ -519,7 +519,7 @@ export function initialize() { (event) => { event.preventDefault(); - const $target = $(event.target).parents(".compose_banner"); + const $target = $(event.target).parents(".main-view-banner"); const stream_id = Number.parseInt($target.attr("data-stream-id"), 10); const topic_name = $target.attr("data-topic-name"); @@ -538,7 +538,7 @@ export function initialize() { (event) => { event.preventDefault(); - const $target = $(event.target).parents(".compose_banner"); + const $target = $(event.target).parents(".main-view-banner"); const stream_id = Number.parseInt($target.attr("data-stream-id"), 10); const topic_name = $target.attr("data-topic-name"); @@ -560,7 +560,7 @@ export function initialize() { (event) => { event.preventDefault(); const {$banner_container} = get_input_info(event); - const $invite_row = $(event.target).parents(".compose_banner"); + const $invite_row = $(event.target).parents(".main-view-banner"); const user_id = Number.parseInt($invite_row.data("user-id"), 10); const stream_id = Number.parseInt($invite_row.data("stream-id"), 10); diff --git a/web/src/hotkey.js b/web/src/hotkey.js index 53194dfa4a..d5405ee43f 100644 --- a/web/src/hotkey.js +++ b/web/src/hotkey.js @@ -309,7 +309,7 @@ export function process_escape_key(e) { } // Check for errors in compose box; close errors if they exist - if ($(".compose_banner").length) { + if ($("main-view-banner").length) { compose_banner.clear_all(); return true; } diff --git a/web/styles/compose.css b/web/styles/compose.css index 3a28f26939..c50bb410ef 100644 --- a/web/styles/compose.css +++ b/web/styles/compose.css @@ -272,7 +272,7 @@ display: none; } -.compose_banner { +.main-view-banner { margin-bottom: 20px; border-radius: 5px; border: 1px solid; diff --git a/web/styles/dark_theme.css b/web/styles/dark_theme.css index 99cb278926..5bf9bfb552 100644 --- a/web/styles/dark_theme.css +++ b/web/styles/dark_theme.css @@ -217,7 +217,7 @@ } } - .compose_banner { + .main-view-banner { .above_compose_banner_action_link { color: hsl(200deg 100% 50%); } diff --git a/web/templates/compose_banner/compose_banner.hbs b/web/templates/compose_banner/compose_banner.hbs index aa49f537b5..bbd5dccea4 100644 --- a/web/templates/compose_banner/compose_banner.hbs +++ b/web/templates/compose_banner/compose_banner.hbs @@ -1,5 +1,5 @@
diff --git a/web/templates/compose_banner/message_sent_banner.hbs b/web/templates/compose_banner/message_sent_banner.hbs index ee03923a01..a16cb6ee8b 100644 --- a/web/templates/compose_banner/message_sent_banner.hbs +++ b/web/templates/compose_banner/message_sent_banner.hbs @@ -1,4 +1,4 @@ -
+

{{banner_text}} {{#if link_text}} {{link_text}}{{/if}} diff --git a/web/templates/compose_banner/success_message_scheduled_banner.hbs b/web/templates/compose_banner/success_message_scheduled_banner.hbs index acc58ea4c5..27e131b531 100644 --- a/web/templates/compose_banner/success_message_scheduled_banner.hbs +++ b/web/templates/compose_banner/success_message_scheduled_banner.hbs @@ -1,5 +1,5 @@

+

{{banner_text}}