Skip to content

Commit

Permalink
Display the block inline to avoid filling the entire parent block cli…
Browse files Browse the repository at this point in the history
…ckable area
  • Loading branch information
Copons committed Apr 15, 2020
1 parent 758bbcf commit 9cd3feb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions extensions/blocks/button/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import applyFallbackStyles from './apply-fallback-styles';
import ButtonBorderPanel from './button-border-panel';
import ButtonColorsPanel from './button-colors-panel';
import { IS_GRADIENT_AVAILABLE } from './constants';
import './editor.scss';

const ButtonEdit = ( {
attributes,
Expand Down
4 changes: 4 additions & 0 deletions extensions/blocks/button/editor.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.wp-block[data-type='jetpack/button'] {
display: inline-block;
margin: 0 auto;
}

0 comments on commit 9cd3feb

Please sign in to comment.