]> cat aescling's git repositories - mastodon.git/commitdiff
Fix broken style in media gallery (regression from #3963) (#4014)
authorYamagishi Kazutoshi <ykzts@desire.sh>
Fri, 30 Jun 2017 11:40:00 +0000 (20:40 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Fri, 30 Jun 2017 11:40:00 +0000 (13:40 +0200)
app/javascript/styles/components.scss

index 4df4b0685e61c0d6523010965bbcecacbaca5d53..28cb9ec65a34e84ba1e48fcf954d0eedc58cf619 100644 (file)
@@ -3421,19 +3421,16 @@ button.icon-button.active i.fa-retweet {
 }
 
 .media-gallery__item-thumbnail {
-  background-position: center;
-  background-repeat: no-repeat;
-  background-size: cover;
   cursor: zoom-in;
-  display: flex;
-  align-items: center;
+  display: block;
   text-decoration: none;
   height: 100%;
 
   &,
   img {
     width: 100%;
-    overflow: hidden;
+    height: 100%;
+    object-fit: cover;
   }
 }