浏览代码

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


正在加载...
取消
保存