Skip to content
Snippets Groups Projects
Commit 259181c4 authored by Lynx Kotoura's avatar Lynx Kotoura Committed by Eugen Rochko
Browse files

Fix size of single media in media-gallery (#5098)

parent 510df0ac
No related branches found
No related tags found
No related merge requests found
......@@ -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>
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment