Skip to content

Commit

Permalink
Fix placeholder alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Mar 2, 2020
1 parent 5d56465 commit ea57f4e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/block-library/src/image/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,6 @@ export class ImageEdit extends Component {
const mediaPlaceholder = (
<MediaPlaceholder
icon={ <BlockIcon icon={ icon } /> }
className={ className }
labels={ labels }
onSelect={ this.onSelectImage }
onSelectURL={ this.onSelectURL }
Expand All @@ -429,7 +428,12 @@ export class ImageEdit extends Component {
return (
<>
{ controls }
<Block.div className={ classes } data-align={ align }>
<Block.div
className={ classnames( className, {
[ `align${ align }` ]:
! needsAlignmentWrapper && align,
} ) }
>
{ needsAlignmentWrapper ? (
<div className={ `align${ align }` }>
{ mediaPlaceholder }
Expand Down

0 comments on commit ea57f4e

Please sign in to comment.