Skip to content

Commit

Permalink
Update the widths of the variations in the block placeholder so that …
Browse files Browse the repository at this point in the history
…spacing is consistent and alignment when the block is narrow is visually appealing. (WordPress#27255)
  • Loading branch information
mapk authored Nov 25, 2020
1 parent 2d2bfcf commit d3ded78
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
list-style: none;
margin: $grid-unit-10 ( $grid-unit-10 + $grid-unit-15 ) 0 0;
flex-shrink: 1;
max-width: 100px;
width: 75px;
text-align: center;

button {
Expand All @@ -48,6 +48,7 @@
font-family: $default-font;
font-size: 12px;
display: block;
line-height: 1.4;
}
}

Expand Down
8 changes: 4 additions & 4 deletions packages/block-library/src/query/variations.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const variations = [
},
{
name: 'title-date',
title: __( 'Title and Date' ),
title: __( 'Title & Date' ),
icon: titleDate,
innerBlocks: [
[
Expand All @@ -54,7 +54,7 @@ const variations = [
},
{
name: 'title-excerpt',
title: __( 'Title and Excerpt' ),
title: __( 'Title & Excerpt' ),
icon: titleExcerpt,
innerBlocks: [
[
Expand All @@ -67,7 +67,7 @@ const variations = [
},
{
name: 'title-date-excerpt',
title: __( 'Title, Date and Excerpt' ),
title: __( 'Title, Date, & Excerpt' ),
icon: titleDateExcerpt,
innerBlocks: [
[
Expand All @@ -84,7 +84,7 @@ const variations = [
},
{
name: 'image-date-title',
title: __( 'Image, Date and Title ' ),
title: __( 'Image, Date, & Title' ),
icon: imageDateTitle,
innerBlocks: [
[
Expand Down

0 comments on commit d3ded78

Please sign in to comment.