From: Lynx Kotoura Date: Mon, 25 Sep 2017 18:26:50 +0000 (+0900) Subject: Fix size of single media in media-gallery (#5098) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=259181c41a5b6d4654e4e956490a3e4120bc9920;p=mastodon.git Fix size of single media in media-gallery (#5098) --- diff --git a/app/javascript/mastodon/components/media_gallery.js b/app/javascript/mastodon/components/media_gallery.js index 52b34971b..a81409871 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}
);