Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Media & Text block preview alignment on larger devices #67097

Open
wants to merge 7 commits into
base: trunk
Choose a base branch
from
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ export default function PreviewBlockPopover( { blocks } ) {
<div className="block-editor-block-switcher__preview-title">
{ __( 'Preview' ) }
</div>
<BlockPreview viewportWidth={ 500 } blocks={ blocks } />
{ /* 600px is the value of $break-small in base-styles/_breakpoints.scss.
We set the viewport width to 601px to make sure that the media-text
block which uses this breakpoint has the correct padding. */ }
<BlockPreview viewportWidth={ 601 } blocks={ blocks } />
</div>
</Popover>
</div>
Expand Down
Loading