Fix twemoji scaling
authorAjay Bura <ajbura@gmail.com>
Fri, 24 Dec 2021 04:48:07 +0000 (10:18 +0530)
committerAjay Bura <ajbura@gmail.com>
Fri, 24 Dec 2021 04:48:07 +0000 (10:18 +0530)
Signed-off-by: Ajay Bura <ajbura@gmail.com>
src/app/atoms/text/Text.scss
src/app/molecules/message/Message.scss

index a4a1eeda060d836ffbd6489ebf16a1d855726351..256bf6ea9801dfc87f9717cb4d080089dea9a727 100644 (file)
@@ -5,7 +5,7 @@
 
   & img.emoji,
   & img[data-mx-emoticon] {
-    height: var(--fs-#{$type});
+    height: calc(var(--lh-#{$type}) - .25rem);
   }
 }
 
@@ -20,7 +20,8 @@
     margin-right: 2px !important;
     padding: 0 !important;
     position: relative;
-    top: 2px;
+    top: -.1rem;
+    vertical-align: middle;
   }
 }
 
index 541aecc7bc425918e865eec8d0df73ea3689c1ff..43c23c8f435867a3dd5af02238ef37526296e453 100644 (file)
   cursor: pointer;
 
   & .react-emoji {
-    width: 14px;
-    height: 14px;
+    width: 16px;
+    height: 16px;
     margin: 2px;
   }
   &-count {
     color: var(--tc-surface-normal)
   }
   &-tooltip .react-emoji  {
-    width: 14px;
-    height: 14px;
+    width: 16px;
+    height: 16px;
     margin: 0 var(--sp-ultra-tight);
     margin-bottom: -2px;
   }