From 259181c41a5b6d4654e4e956490a3e4120bc9920 Mon Sep 17 00:00:00 2001 From: Lynx Kotoura Date: Tue, 26 Sep 2017 03:26:50 +0900 Subject: [PATCH] Fix size of single media in media-gallery (#5098) --- app/javascript/mastodon/components/media_gallery.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/javascript/mastodon/components/media_gallery.js b/app/javascript/mastodon/components/media_gallery.js index 52b34971b4e..a81409871e7 100644 --- a/app/javascript/mastodon/components/media_gallery.js +++ b/app/javascript/mastodon/components/media_gallery.js @@ -161,10 +161,8 @@ class Item extends React.PureComponent { ); } - const style = standalone ? {} : { left, top, right, bottom, width: `${width}%`, height: `${height}%` }; - return ( -
+
{thumbnail}
);