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.cssindex 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 2pxof top and bottom margin needed for hover backgrounds tonot touch the row outline. */diff --git a/web/styles/right_sidebar.css b/web/styles/right_sidebar.cssindex 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 the30px allotted in the left sidebar, but it holdsthe 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);