Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
css: Refactor user profile stream and group list container rules.
Pratik Chanda67407770c8cd
diff --git a/web/styles/modal.css b/web/styles/modal.cssindex a743f32de20..c9bd2ab45fb 100644--- a/web/styles/modal.css+++ b/web/styles/modal.css@@ -89,21 +89,6 @@}}-.user-profile-name-heading {- max-width: 80%;- display: flex;- align-items: center;- gap: 10px;- /* This line-height is to increase the vertical clickable areas on the icons. */- line-height: 1.2727em; /* 28px at 22px font-size at 14px em */-- .user-profile-name {- white-space: nowrap;- overflow: hidden;- text-overflow: ellipsis;- }-}-.modal__close {&::before {content: "\2715";@@ -210,6 +195,91 @@color: hsl(0deg 0% 100%) !important;}+/* Modal-specific CSS belongs below this point. */++#user-profile-modal .group-list-container,+#user-profile-modal .stream-list-container {+ height: calc(100% - var(--header-line-height));+ border-radius: 4px;+ background-color: var(--background-color-user-profile-list-container);+ border: 1px solid var(--color-border-user-profile-list-container);+ padding: 0.25em 0.25em 0;+ margin-bottom: 5px;+ -webkit-overflow-scrolling: touch;++ .user-profile-group-row,+ .user-profile-channel-row {+ display: flex;+ justify-content: space-between;+ padding: 0.3125em 0.625em;+ align-items: center;+ text-decoration: none;+ border-radius: 4px;+ color: var(--color-dropdown-item);+ cursor: pointer;++ .user-group-list-item,+ .user-stream-list-item {+ display: flex;+ overflow: hidden;+ }++ .stream-privacy {+ display: flex;+ align-items: center;+ }++ .filter-icon i {+ padding-right: 3px;+ }++ &:hover {+ background-color: var(--color-user-profile-list-item-hover);+ }++ &:focus-visible {+ outline: 1px solid var(--color-outline-user-profile-list-item);+ outline-offset: -2px;+ }++ .user-group-name,+ .user-stream-name {+ white-space: nowrap;+ overflow: hidden;+ text-overflow: ellipsis;+ padding-right: 2px;+ }+ }++ .subscription-group-list,+ .subscription-stream-list {+ /* We set max-height to remaining height of stream-list-container+ so that we don't clip it. Search field height takes up 2em of total. */+ height: calc(100% - 2em);++ .user-group-list,+ .user-stream-list {+ list-style: none;+ margin: 0;+ }+ }+}++.user-profile-name-heading {+ max-width: 80%;+ display: flex;+ align-items: center;+ gap: 10px;+ /* This line-height is to increase the vertical clickable areas on the icons. */+ line-height: 1.2727em; /* 28px at 22px font-size at 14px em */++ .user-profile-name {+ white-space: nowrap;+ overflow: hidden;+ text-overflow: ellipsis;+ }+}+#user-profile-modal .save-success {vertical-align: top;background-color: transparent;diff --git a/web/styles/popovers.css b/web/styles/popovers.cssindex 65c53a4d6a6..ccec4a42a2e 100644--- a/web/styles/popovers.css+++ b/web/styles/popovers.css@@ -571,15 +571,6 @@ ul.popover-group-menu-member-list {grid-area: bottom;}- .stream-privacy {- display: flex;- align-items: center;- }-- .filter-icon i {- padding-right: 3px;- }-.user_profile_subscribe_widget {display: flex;justify-content: space-between;@@ -602,65 +593,6 @@ ul.popover-group-menu-member-list {margin-bottom: 0.75em;}- .group-list-container,- .stream-list-container {- height: calc(100% - var(--header-line-height));- border-radius: 4px;- background-color: var(--background-color-user-profile-list-container);- border: 1px solid var(--color-border-user-profile-list-container);- padding: 0.25em 0.25em 0;- margin-bottom: 5px;- -webkit-overflow-scrolling: touch;-- .user-profile-group-row,- .user-profile-channel-row {- display: flex;- justify-content: space-between;- padding: 0.3125em 0.625em;- align-items: center;- text-decoration: none;- border-radius: 4px;- color: var(--color-dropdown-item);- cursor: pointer;-- .user-group-list-item,- .user-stream-list-item {- display: flex;- overflow: hidden;- }-- &:hover {- background-color: var(--color-user-profile-list-item-hover);- }-- &:focus-visible {- outline: 1px solid var(--color-outline-user-profile-list-item);- outline-offset: -2px;- }-- .user-group-name,- .user-stream-name {- white-space: nowrap;- overflow: hidden;- text-overflow: ellipsis;- padding-right: 2px;- }- }-- .subscription-group-list,- .subscription-stream-list {- /* We set max-height to remaining height of stream-list-container- so that we don't clip it. Search field height takes up 2em of total. */- height: calc(100% - 2em);-- .user-group-list,- .user-stream-list {- list-style: none;- margin: 0;- }- }- }-.manage-profile-tab-footer {height: 0;