Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

right_sidebar: Rework righthand gutter, header to match Vlad's design.

Karl Stolley557038416c6c
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.css
index abcee7302c9..bd0922de19b 100644
--- a/web/styles/app_variables.css
+++ b/web/styles/app_variables.css
@@ -271,6 +271,9 @@
--line-height-sidebar-row-prominent: 1.7142em; /* 24px / 14px em */
--line-height-sidebar-row: 1.5714em; /* 22px / 14px em */
+ /* Right sidebar */
+ --right-sidebar-padding-right: 8px;
+
/* Tippy popover related values */
--navbar-popover-menu-min-width: 230px;
--message-actions-popover-min-width: 230px;
diff --git a/web/styles/right_sidebar.css b/web/styles/right_sidebar.css
index 1eb8ceb2436..3f500d7338d 100644
--- a/web/styles/right_sidebar.css
+++ b/web/styles/right_sidebar.css
@@ -7,6 +7,10 @@ $user_status_emoji_width: 24px;
}
}
+.right-sidebar-items {
+ padding-right: var(--right-sidebar-padding-right);
+}
+
.right-sidebar-title {
color: var(--color-text-sidebar-heading);
font-size: inherit;
@@ -319,11 +323,10 @@ $user_status_emoji_width: 24px;
#userlist-header {
cursor: pointer;
- display: flex;
- flex-direction: row;
- justify-content: space-between;
+ display: grid;
+ grid-template-rows: var(--line-height-sidebar-row-prominent);
+ grid-template-columns: minmax(0, 1fr) 20px;
align-items: center;
- margin-right: 10px;
#userlist-title {
margin: 0;
@@ -331,7 +334,7 @@ $user_status_emoji_width: 24px;
#user_filter_icon {
opacity: 0.5;
- margin-right: 5px;
+ justify-self: center;
&:hover {
opacity: 1;
@@ -361,12 +364,11 @@ $user_status_emoji_width: 24px;
white-space: nowrap;
margin-bottom: 10px;
- & input {
+ & .user-list-filter {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
- padding-right: 20px;
- width: calc(100% - 40px - 3px);
+ width: var(100% - var(--right-sidebar-padding-right));
}
.clear_search_button {