Skip to content

Commit

Permalink
moves the edit button to its own group, fixes media preview margin
Browse files Browse the repository at this point in the history
  • Loading branch information
draganescu committed Apr 19, 2019
1 parent 3be4508 commit 36a6379
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/block-library/src/media-text/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,8 @@ class MediaTextEdit extends Component {
<BlockControls>
<Toolbar
controls={ toolbarControls }
>
/>
<Toolbar>
{ mediaUrl && <IconButton
className={ classnames( 'components-icon-button components-toolbar__control', { 'is-active': this.state.isEditing } ) }
label={ __( 'Edit Media' ) }
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/placeholder/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
justify-content: center;
font-weight: 600;
margin-bottom: 1em;
margin-top: 1em;

.dashicon,
.block-editor-block-icon {
Expand Down

0 comments on commit 36a6379

Please sign in to comment.