Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 297cf8b

Browse files
committed
Scale emoji with size of surrounding text
1 parent 8ddde50 commit 297cf8b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

res/css/views/elements/_RichText.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ a.mx_Pill {
7676
}
7777

7878
.mx_Emoji {
79-
font-size: 1.8rem;
79+
// Should be 1.8rem for our default 1.4rem message bodies,
80+
// and scale with the size of the surrounding text
81+
font-size: calc(18/14 * 1em);
8082
vertical-align: bottom;
8183
}
8284

0 commit comments

Comments
 (0)