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: Calculate margin-top on shortcuts.

Karl Stolleye42f9a1efdbc
diff --git a/web/styles/right_sidebar.css b/web/styles/right_sidebar.css
index 81944ffd39d..b39f824fc46 100644
--- a/web/styles/right_sidebar.css
+++ b/web/styles/right_sidebar.css
@@ -341,7 +341,11 @@ $user_status_emoji_width: 24px;
display: flex;
flex-direction: row;
justify-content: space-between;
- margin-top: 5px;
+ /* The margin top is calculated from a legacy 25px height,
+ from a 20px line of text and 5px of margin top. We calculate
+ a scaling margin-top by subtracting the em-unit line height
+ from the legacy value. */
+ margin-top: calc(25px - (var(--legacy-body-line-height-unitless) * 1em));
}
#user_search_section {