diff options
author | alpaca-tc <alpaca-tc@alpaca.tc> | 2017-04-29 21:29:13 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-04-29 14:29:13 +0200 |
commit | 96c84da1d4da2c53f3a119c8c57629f49fa89fb6 (patch) | |
tree | 62822e384e85eef8b467ae6b2894bf222170d8fc /app/assets/javascripts | |
parent | 7d36a76180ce6bb207c6755bdffeba0b4edb6824 (diff) |
Expand uploaded thumbnail (#2611)
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r-- | app/assets/javascripts/components/features/compose/components/upload_form.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/components/features/compose/components/upload_form.jsx b/app/assets/javascripts/components/features/compose/components/upload_form.jsx index 4aafe698e..a2fb7cfe0 100644 --- a/app/assets/javascripts/components/features/compose/components/upload_form.jsx +++ b/app/assets/javascripts/components/features/compose/components/upload_form.jsx @@ -18,7 +18,7 @@ class UploadForm extends React.PureComponent { <div className='compose-form__upload' key={attachment.get('id')}> <Motion defaultStyle={{ scale: 0.8 }} style={{ scale: spring(1, { stiffness: 180, damping: 12 }) }}> {({ scale }) => - <div className='compose-form__upload-thumbnail' style={{ transform: `translateZ(0) scale(${scale})`, background: `url(${attachment.get('preview_url')}) no-repeat center` }}> + <div className='compose-form__upload-thumbnail' style={{ transform: `translateZ(0) scale(${scale})`, backgroundImage: `url(${attachment.get('preview_url')})` }}> <IconButton icon='times' title={intl.formatMessage(messages.undo)} size={36} onClick={this.props.onRemoveFile.bind(this, attachment.get('id'))} /> </div> } |