Procházet zdrojové kódy

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

master
Lynx Kotoura před 6 roky
committed by Eugen Rochko
rodič
revize
259181c41a
1 změnil soubory, kde provedl 1 přidání a 3 odebrání
  1. +1
    -3
      app/javascript/mastodon/components/media_gallery.js

+ 1
- 3
app/javascript/mastodon/components/media_gallery.js Zobrazit soubor

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


Načítá se…
Zrušit
Uložit