fix: proper thumbnail sizing after thumbnail upload
This commit is contained in:
parent
b245028050
commit
11b90632c3
1 changed files with 20 additions and 20 deletions
|
@ -122,12 +122,12 @@ class SelectThumbnail extends React.PureComponent<Props, State> {
|
||||||
onFileChosen={path => openModal(MODALS.CONFIRM_THUMBNAIL_UPLOAD, { path })}
|
onFileChosen={path => openModal(MODALS.CONFIRM_THUMBNAIL_UPLOAD, { path })}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{status === THUMBNAIL_STATUSES.COMPLETE && (
|
{status === THUMBNAIL_STATUSES.COMPLETE &&
|
||||||
|
thumbnail && (
|
||||||
<div className="column column--space-between">
|
<div className="column column--space-between">
|
||||||
<img
|
<div
|
||||||
className="column__item thumbnail-preview"
|
className="column__item thumbnail-preview"
|
||||||
src={thumbnail}
|
style={{ backgroundImage: `url(${thumbnail})` }}
|
||||||
alt={__('Thumbnail Preview')}
|
|
||||||
/>
|
/>
|
||||||
<div className="column__item">
|
<div className="column__item">
|
||||||
<p>
|
<p>
|
||||||
|
|
Loading…
Reference in a new issue