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: Avoid vdots appearing beneath Simplebar scroll.

Karl Stolley87a0fa0c8c1e
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.css
index 8857f38dbcf..d9ffeb3ab54 100644
--- a/web/styles/app_variables.css
+++ b/web/styles/app_variables.css
@@ -432,6 +432,14 @@
*/
--browser-overlay-scrollbar-width: 10px;
+ /*
+ Sometimes it's necessary to keep elements, especially those with hover
+ controls or other interactivity, from appearing beneath Simplebar scroll
+ bars.
+ */
+ --width-simplebar-scroll: 11px;
+ --width-simplebar-scroll-hover: 15px;
+
/* This is a rough estimate for height occupied by Recent Conversations filters.
We expect `resize.ts` to update this once UI is initialized. */
--recent-topics-filters-height: 50px;
diff --git a/web/styles/right_sidebar.css b/web/styles/right_sidebar.css
index 14dcf24aed2..c6ed06ffab0 100644
--- a/web/styles/right_sidebar.css
+++ b/web/styles/right_sidebar.css
@@ -263,6 +263,7 @@ $user_status_emoji_width: 24px;
"row-content ending-anchor-element" var(--line-height-sidebar-row)
"row-content ." auto / minmax(0, 1fr) 26px;
align-content: baseline;
+ margin-right: var(--width-simplebar-scroll-hover);
.user-name-and-status-emoji {
display: flex;
@@ -326,6 +327,7 @@ $user_status_emoji_width: 24px;
grid-template-rows: var(--line-height-sidebar-row-prominent);
grid-template-columns: minmax(0, 1fr) 20px;
align-items: center;
+ margin-right: var(--width-simplebar-scroll-hover);
#userlist-title {
margin: 0;