瀏覽代碼

Fix large single emoji (#724)

Danilo Bargen 6 年之前
父節點
當前提交
64d24264ad
共有 2 個文件被更改,包括 13 次插入7 次删除
  1. 13 2
      src/sass/components/_emoji.scss
  2. 0 5
      src/sass/sections/_conversation.scss

+ 13 - 2
src/sass/components/_emoji.scss

@@ -1,6 +1,17 @@
+$emoji-height-normal: 1em;
+$emoji-height-large: 32px;
+
 img.em {
-    height: 1em;
-    width: 1em;
+    height: $emoji-height-normal;
+    width: $emoji-height-normal;
     margin: 0 .05em 0 .1em;
     vertical-align: -0.1em;
 }
+
+#conversation .message-text {
+    .em.large-emoji {
+        height: $emoji-height-large;
+        width: $emoji-height-large;
+        margin: 1px 4px 1px 0px;
+    }
+}

+ 0 - 5
src/sass/sections/_conversation.scss

@@ -354,11 +354,6 @@
             span {
                 white-space: pre-wrap;
             }
-
-            span.e1.large-emoji {
-                transform: scale(1.0);
-                margin: 1px 4px 1px 0px;
-            }
         }
 
         .message-media {