commit: 259181c41a5b6d4654e4e956490a3e4120bc9920
parent: 510df0ac556377f6dcd2f7e3e6237ef6035f06d6
Author: Lynx Kotoura <admin@sanin.link>
Date: Tue, 26 Sep 2017 03:26:50 +0900
Fix size of single media in media-gallery (#5098)
Diffstat:
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
@@ -161,10 +161,8 @@ class Item extends React.PureComponent {
);
}
- const style = standalone ? {} : { left, top, right, bottom, width: `${width}%`, height: `${height}%` };
-
return (
- <div className={classNames('media-gallery__item', { standalone })} key={attachment.get('id')} style={style}>
+ <div className={classNames('media-gallery__item', { standalone })} key={attachment.get('id')} style={{ left: left, top: top, right: right, bottom: bottom, width: `${width}%`, height: `${height}%` }}>
{thumbnail}
</div>
);