Pārlūkot izejas kodu

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

master
Lynx Kotoura pirms 6 gadiem
committed by Eugen Rochko
vecāks
revīzija
259181c41a
1 mainītis faili ar 1 papildinājumiem un 3 dzēšanām
  1. +1
    -3
      app/javascript/mastodon/components/media_gallery.js

+ 1
- 3
app/javascript/mastodon/components/media_gallery.js Parādīt failu

@@ -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>
);


Notiek ielāde…
Atcelt
Saglabāt