compose_banner: Rename classnames to main-view-banner.

Previously, we have duplicate stylings in compose banner and unread banner.
This is rather messy and creates a lot of styling rules. We should define
an abstraction for them. This change will rename compose_banner
to main-view-banner.
This commit is contained in:
Joelute
2023-05-19 19:23:33 -04:00
committed by Tim Abbott
parent f5a21d0e47
commit 00add94045
8 changed files with 10 additions and 10 deletions

View File

@@ -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);