Преглед на файлове

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

master
Lynx Kotoura преди 6 години
committed by Eugen Rochko
родител
ревизия
259181c41a
променени са 1 файла, в които са добавени 1 реда и са изтрити 3 реда
  1. +1
    -3
      app/javascript/mastodon/components/media_gallery.js

+ 1
- 3
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>
);


Зареждане…
Отказ
Запис