diff --git a/files/templates/emoji_modal.html b/files/templates/emoji_modal.html
index 38a8a74d3..deeebfcfa 100644
--- a/files/templates/emoji_modal.html
+++ b/files/templates/emoji_modal.html
@@ -78,10 +78,14 @@
overflow: hidden;
border: none
}
+ .emoji2 > img {
+ -o-object-fit: contain;
+ object-fit: contain;
+ }