From ba71fb169f952e1bf0077fc13aa314c3a9ec2486 Mon Sep 17 00:00:00 2001 From: Robin Date: Mon, 4 Apr 2022 10:25:33 -0400 Subject: [PATCH] Scale emoji with size of surrounding text (#8224) * Scale emoji with size of surrounding text * Fix lint --- res/css/views/elements/_RichText.scss | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/res/css/views/elements/_RichText.scss b/res/css/views/elements/_RichText.scss index 221fc54a05..4615f5da23 100644 --- a/res/css/views/elements/_RichText.scss +++ b/res/css/views/elements/_RichText.scss @@ -76,7 +76,9 @@ a.mx_Pill { } .mx_Emoji { - font-size: 1.8rem; + // Should be 1.8rem for our default 1.4rem message bodies, + // and scale with the size of the surrounding text + font-size: calc(18 / 14 * 1em); vertical-align: bottom; }