Skip to content

Commit

Permalink
Increase the viewport width (non-scaled) for template previews (#21287)
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad authored Mar 31, 2020
1 parent 0a7dfe7 commit 3edc36d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function BlockPattern( { pattern, onClick } ) {
tabIndex={ 0 }
>
<div className="block-editor-patterns__item-preview">
<BlockPreview blocks={ blocks } />
<BlockPreview blocks={ blocks } viewportWidth={ 800 } />
</div>
<div className="block-editor-patterns__item-title">{ title }</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function TemplatePartPreview() {
<div className="wp-block-template-part__placeholder-preview-title">
{ __( 'Preview' ) }
</div>
<BlockPreview blocks={ blocks } />
<BlockPreview blocks={ blocks } viewportWidth={ 1200 } />
</div>
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ function TemplatePreview( { item } ) {
);
return (
<div className="edit-site-template-switcher__preview">
{ !! blocks && <BlockPreview blocks={ blocks } /> }
{ !! blocks && (
<BlockPreview blocks={ blocks } viewportWidth={ 1200 } />
) }
</div>
);
}
Expand Down

0 comments on commit 3edc36d

Please sign in to comment.