diff --git a/web/styles/right_sidebar.css b/web/styles/right_sidebar.css index 81944ffd39..b39f824fc4 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 {