diff options
author | Yamagishi Kazutoshi <ykzts@desire.sh> | 2017-04-24 11:10:32 +0900 |
---|---|---|
committer | Eugen <eugen@zeonfederated.com> | 2017-04-24 04:10:32 +0200 |
commit | 72c984e1057306d1e4df49871b9fb658fd7cbcc6 (patch) | |
tree | 0fae4e490607eafaf6d269c101d692b972426f28 /app/assets/javascripts | |
parent | 3d3707a077b83c5bee695e35f8aa67450e24ccd2 (diff) |
Fix background-size being overwritten (#2382)
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r-- | app/assets/javascripts/components/components/media_gallery.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/components/components/media_gallery.jsx b/app/assets/javascripts/components/components/media_gallery.jsx index 6101c2eef..58e134f50 100644 --- a/app/assets/javascripts/components/components/media_gallery.jsx +++ b/app/assets/javascripts/components/components/media_gallery.jsx @@ -86,7 +86,7 @@ class Item extends React.PureComponent { href={attachment.get('remote_url') || attachment.get('url')} onClick={this.handleClick} target='_blank' - style={{ background: `url(${attachment.get('preview_url')}) no-repeat center`}} + style={{ backgroundImage: `url(${attachment.get('preview_url')})` }} /> ); } else if (attachment.get('type') === 'gifv') { |