]> cat aescling's git repositories - mastodon.git/commitdiff
Fix custom emojis with non-1:1 aspect ratio being stretched (#5017)
authorEugen Rochko <eugen@zeonfederated.com>
Wed, 20 Sep 2017 01:38:38 +0000 (03:38 +0200)
committerGitHub <noreply@github.com>
Wed, 20 Sep 2017 01:38:38 +0000 (03:38 +0200)
app/javascript/styles/components.scss

index 31341fd0ab7754aca921c2b58b22ffa767fcae5d..1e24592c97a839f322edd1bc85ecdba5d9cb70d6 100644 (file)
   display: inline-block;
   font-size: inherit;
   vertical-align: middle;
+  object-fit: contain;
   margin: -.2ex .15em .2ex;
   width: 16px;
   height: 16px;