add basic message for thumbnail uploads
This commit is contained in:
parent
8cc4517fb0
commit
881ce59ade
3 changed files with 10 additions and 2 deletions
|
@ -138,7 +138,12 @@ class SelectThumbnail extends React.PureComponent<Props, State> {
|
||||||
)}
|
)}
|
||||||
{status === THUMBNAIL_STATUSES.COMPLETE && thumbnail && (
|
{status === THUMBNAIL_STATUSES.COMPLETE && thumbnail && (
|
||||||
<div className="column column--space-between">
|
<div className="column column--space-between">
|
||||||
<div className="column__item thumbnail-preview" style={{ backgroundImage: `url(${thumbnail})` }} />
|
<div
|
||||||
|
className="column__item thumbnail-preview"
|
||||||
|
// style={{ backgroundImage: `url(${thumbnail})` }}
|
||||||
|
>
|
||||||
|
{__('This will be visible in a few minutes.')}
|
||||||
|
</div>
|
||||||
<div className="column__item">
|
<div className="column__item">
|
||||||
<p>{__('Upload complete.')}</p>
|
<p>{__('Upload complete.')}</p>
|
||||||
<div className="section__actions">
|
<div className="section__actions">
|
||||||
|
|
|
@ -20,7 +20,7 @@ class ModalConfirmThumbnailUpload extends React.PureComponent<Props> {
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { closeModal, file } = this.props;
|
const { closeModal, file } = this.props;
|
||||||
|
console.log('file', file);
|
||||||
return (
|
return (
|
||||||
<Modal
|
<Modal
|
||||||
isOpen
|
isOpen
|
||||||
|
|
|
@ -298,6 +298,9 @@ textarea {
|
||||||
.thumbnail-preview {
|
.thumbnail-preview {
|
||||||
width: var(--thumbnail-preview-width);
|
width: var(--thumbnail-preview-width);
|
||||||
height: var(--thumbnail-preview-height);
|
height: var(--thumbnail-preview-height);
|
||||||
|
background-color: var(--color-thumbnail-background);
|
||||||
|
padding: var(--spacing-s);
|
||||||
|
font-size: var(--font-small);
|
||||||
border-radius: var(--border-radius);
|
border-radius: var(--border-radius);
|
||||||
background-position: 50% 50%;
|
background-position: 50% 50%;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
|
|
Loading…
Reference in a new issue