Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
modal: Add common classes to list containers and item elements.
Pratik Chanda013a02c261e4
diff --git a/web/styles/modal.css b/web/styles/modal.cssindex f130993e480..00b9a9103e6 100644--- a/web/styles/modal.css+++ b/web/styles/modal.css@@ -510,8 +510,7 @@border-radius: 4px;color: var(--color-dropdown-item);- .modal-group-list-row-content,- .modal-channel-list-row-content {+ .list-row-content {display: flex;overflow: hidden;border-radius: 4px;@@ -533,24 +532,19 @@padding-right: 3px;}- .user-group-name,- .stream-name {+ .list-item-name {white-space: nowrap;overflow: hidden;text-overflow: ellipsis;}}- .subscription-group-list,- .subscription-stream-list,- .edit-channel-folder-stream-list {+ .modal-list-scroll-container {/* We set max-height to remaining height of stream-list-containerso that we don't clip it. Search field height takes up 2em of total. */height: calc(100% - 2em);- .user-group-list,- .user-stream-list,- .folder-stream-list {+ .modal-item-list {list-style: none;margin: 0;}diff --git a/web/templates/channel_list_item.hbs b/web/templates/channel_list_item.hbsindex e1d79c53637..d7cea6c3ab7 100644--- a/web/templates/channel_list_item.hbs+++ b/web/templates/channel_list_item.hbs@@ -1,10 +1,10 @@-<li class="stream-list-item" role="presentation" data-stream-id="{{stream_id}}">+<li class="stream-list-item modal-list-item" role="presentation" data-stream-id="{{stream_id}}"><div class="modal-channel-list-row hidden-remove-button-row">- <span class="view-stream-card modal-channel-list-row-content" data-stream-id="{{stream_id}}" tabindex="0">+ <span class="view-stream-card modal-channel-list-row-content list-row-content" data-stream-id="{{stream_id}}" tabindex="0"><span class="stream-privacy-original-color-{{stream_id}} stream-privacy filter-icon" style="color: {{stream_color}}">{{> stream_privacy . }}</span>- <span class="stream-name">{{name}}</span>+ <span class="stream-name list-item-name">{{name}}</span></span><div class="remove-button-wrapper">{{#if show_unsubscribe_button}}diff --git a/web/templates/stream_settings/edit_channel_folder_modal.hbs b/web/templates/stream_settings/edit_channel_folder_modal.hbsindex 406686f7f3b..e8dc094ff42 100644--- a/web/templates/stream_settings/edit_channel_folder_modal.hbs+++ b/web/templates/stream_settings/edit_channel_folder_modal.hbs@@ -25,8 +25,8 @@<i class="zulip-icon zulip-icon-close" aria-hidden="true"></i></button></div>- <div class="edit-channel-folder-stream-list" data-simplebar data-simplebar-tab-index="-1">- <ul class="folder-stream-list" data-empty="{{t 'No channel in channel folder.' }}" data-search-results-empty="{{t 'No matching channels.' }}"></ul>+ <div class="edit-channel-folder-stream-list modal-list-scroll-container" data-simplebar data-simplebar-tab-index="-1">+ <ul class="folder-stream-list modal-item-list" data-empty="{{t 'No channel in channel folder.' }}" data-search-results-empty="{{t 'No matching channels.' }}"></ul></div></div></div>diff --git a/web/templates/user_group_list_item.hbs b/web/templates/user_group_list_item.hbsindex e18d07a3d98..2e203319efe 100644--- a/web/templates/user_group_list_item.hbs+++ b/web/templates/user_group_list_item.hbs@@ -1,7 +1,7 @@-<li class="group-list-item" role="presentation" data-group-id="{{group_id}}">+<li class="group-list-item modal-list-item" role="presentation" data-group-id="{{group_id}}"><div class="modal-group-list-row hidden-remove-button-row">- <span class="view_user_group modal-group-list-row-content" data-user-group-id="{{group_id}}" tabindex="0">- <span class="user-group-name">+ <span class="view_user_group modal-group-list-row-content list-row-content" data-user-group-id="{{group_id}}" tabindex="0">+ <span class="user-group-name list-item-name">{{name}}</span></span>diff --git a/web/templates/user_profile_modal.hbs b/web/templates/user_profile_modal.hbsindex 08423f23bd0..0e69df9dfb6 100644--- a/web/templates/user_profile_modal.hbs+++ b/web/templates/user_profile_modal.hbs@@ -138,8 +138,8 @@</div><div class="stream-list-loader"></div><div class="error-message"></div>- <div class="subscription-stream-list" data-simplebar data-simplebar-tab-index="-1">- <ul class="user-stream-list" data-empty="{{t 'No channel subscriptions.' }}" data-search-results-empty="{{t 'No matching channels.' }}"></ul>+ <div class="subscription-stream-list modal-list-scroll-container" data-simplebar data-simplebar-tab-index="-1">+ <ul class="user-stream-list modal-item-list" data-empty="{{t 'No channel subscriptions.' }}" data-search-results-empty="{{t 'No matching channels.' }}"></ul></div></div></div>@@ -165,8 +165,8 @@<i class="zulip-icon zulip-icon-close" aria-hidden="true"></i></button></div>- <div class="subscription-group-list" data-simplebar data-simplebar-tab-index="-1">- <ul class="user-group-list" data-empty="{{t 'Not a member of any groups.' }}" data-search-results-empty="{{t 'No matching user groups' }}"></ul>+ <div class="subscription-group-list modal-list-scroll-container" data-simplebar data-simplebar-tab-index="-1">+ <ul class="user-group-list modal-item-list" data-empty="{{t 'Not a member of any groups.' }}" data-search-results-empty="{{t 'No matching user groups' }}"></ul></div></div></div>