about summary refs log tree commit diff
path: root/app/javascript/styles
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2017-06-30 20:40:00 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-06-30 13:40:00 +0200
commit0e09048537fee9906ab582bc0704e1a3395c04ed (patch)
treec3695d269d4a312220e70121091d557d7685a084 /app/javascript/styles
parent7362469d8956d5f972283aadd4157631aa66b085 (diff)
Fix broken style in media gallery (regression from #3963) (#4014)
Diffstat (limited to 'app/javascript/styles')
-rw-r--r--app/javascript/styles/components.scss9
1 files changed, 3 insertions, 6 deletions
diff --git a/app/javascript/styles/components.scss b/app/javascript/styles/components.scss
index 4df4b0685..28cb9ec65 100644
--- a/app/javascript/styles/components.scss
+++ b/app/javascript/styles/components.scss
@@ -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;
   }
 }