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: Perfectly align all right-sidebar vdots.

Karl Stolleyecbcfd23d50e
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.css
index 1659a888d9b..33ebcb4b229 100644
--- a/web/styles/app_variables.css
+++ b/web/styles/app_variables.css
@@ -269,6 +269,7 @@
--right-sidebar-width: calc(
var(--right-column-width) - var(--right-sidebar-left-spacing)
);
+ --right-sidebar-vdots-width: 25px;
/* The width of the icon is reduced by 2px, to account for 2px
of top and bottom margin needed for hover backgrounds to
not touch the row outline. */
diff --git a/web/styles/right_sidebar.css b/web/styles/right_sidebar.css
index f80671598c4..cb8b7e00adb 100644
--- a/web/styles/right_sidebar.css
+++ b/web/styles/right_sidebar.css
@@ -405,13 +405,15 @@
that controls remain aligned with the username,
even when there is a status line shown below.
- The 26px column for the vdots is less than the
+ The 25px column for the vdots is less than the
30px allotted in the left sidebar, but it holds
the username area constant, so that no ellipsis
- appears on the username on hover. */
+ appears on the username on hover. The 25px value
+ is necessary for correct vdots alignment with the
+ filter row's vdots. */
grid-template:
"row-content ending-anchor-element" var(--line-height-sidebar-row)
- "row-content ." auto / minmax(0, 1fr) 26px;
+ "row-content ." auto / minmax(0, 1fr) var(--right-sidebar-vdots-width);
align-content: baseline;
margin-right: var(--width-simplebar-scroll-hover);
margin-left: var(--right-sidebar-toggle-width-offset);
@@ -518,8 +520,12 @@
color: var(--color-vdots-visible);
justify-content: center;
display: grid;
- width: 25px;
+ width: var(--right-sidebar-vdots-width);
margin-left: 5px;
+ /* Push back against default right-sidebar
+ spacing for better vdots alignment. */
+ margin-right: 0;
+ padding-left: 0;
&:hover {
color: var(--color-vdots-hover);