Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
channel_list_item: Improve scope of channel list item elements.
Pratik Chanda78b159292781
diff --git a/web/src/user_profile.ts b/web/src/user_profile.tsindex 6259e0bfca4..6214c6c8a13 100644--- a/web/src/user_profile.ts+++ b/web/src/user_profile.ts@@ -1498,7 +1498,7 @@ export function initialize(): void {);});- $("body").on("click", "#user-profile-modal .stream-row .remove-button", (e) => {+ $("body").on("click", "#user-profile-modal .modal-channel-list-row .remove-button", (e) => {e.preventDefault();e.stopPropagation();const $remove_button = $(e.currentTarget).closest(".remove-button");diff --git a/web/styles/modal.css b/web/styles/modal.cssindex a172f1e2889..067779e4458 100644--- a/web/styles/modal.css+++ b/web/styles/modal.css@@ -500,7 +500,7 @@-webkit-overflow-scrolling: touch;.user-profile-group-row,- .stream-row {+ .modal-channel-list-row {display: flex;justify-content: space-between;padding: 0.3125em 0.625em;@@ -511,7 +511,7 @@color: var(--color-dropdown-item);cursor: pointer;- .stream-row-content {+ .modal-channel-list-row-content {display: flex;overflow: hidden;}diff --git a/web/templates/channel_list_item.hbs b/web/templates/channel_list_item.hbsindex ed7edee323f..0961550cf25 100644--- a/web/templates/channel_list_item.hbs+++ b/web/templates/channel_list_item.hbs@@ -1,6 +1,6 @@<li class="stream-list-item" role="presentation" data-stream-id="{{stream_id}}">- <a class="stream-row hidden-remove-button-row" href="{{stream_edit_url}}">- <span class="stream-row-content">+ <a class="modal-channel-list-row hidden-remove-button-row" href="{{stream_edit_url}}">+ <span class="modal-channel-list-row-content"><span class="stream-privacy-original-color-{{stream_id}} stream-privacy filter-icon" style="color: {{stream_color}}">{{> stream_privacy . }}</span>