right_sidebar: Calculate margin-top on shortcuts.

This commit is contained in:
Karl Stolley 2024-07-05 13:01:37 -05:00 committed by Tim Abbott
parent 97d401a0a1
commit e42f9a1efd
1 changed files with 5 additions and 1 deletions

View File

@ -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 {