[wp-trac] [WordPress Trac] #50311: Twenty Twenty theme: blocks available space is too narrow in editor when the Full Width Template is selected
WordPress Trac
noreply at wordpress.org
Wed Jun 3 17:32:16 UTC 2020
#50311: Twenty Twenty theme: blocks available space is too narrow in editor when
the Full Width Template is selected
---------------------------+-----------------------------
Reporter: aljullu | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bundled Theme | Version:
Severity: normal | Keywords:
Focuses: css |
---------------------------+-----------------------------
When selecting the Full Width Template in Twenty Twenty, the page content
is up to 1200px wide in the frontend.
However, the editor has a
[https://github.com/WordPress/twentytwenty/blob/master/assets/css/editor-
style-block.css#L77-L79 CSS rule] that forces `.wp-block` max-width to
610px.
That produces a styles mismatch between the editor and the frontend. This
issue is specially visible in blocks that have different layouts depending
on the container width, like the WooCommerce Checkout block (see
screenshots), but is still reproducible in any other block (see how the
paragraph block line breaks do not occur on the same words editor ''vs.''
frontend).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50311>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list