Make WordPress Core

Opened 4 years ago

Closed 4 days ago

#50311 closed defect (bug) (maybelater)

Twenty Twenty: blocks are too narrow in editor when the Full Width Template is selected

Reported by: aljullu's profile aljullu Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Bundled Theme Keywords: close
Focuses: css Cc:

Description

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 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).

Attachments (1)

Screenshot_2020-06-03 Edit Page ‹ one wordpress test — WordPress.png (326.2 KB) - added by aljullu 4 years ago.

Download all attachments as: .zip

Change History (5)

#1 @sabernhardt
2 years ago

  • Summary changed from Twenty Twenty theme: blocks available space is too narrow in editor when the Full Width Template is selected to Twenty Twenty: blocks are too narrow in editor when the Full Width Template is selected

Thanks for the report!

The theme's block editor stylesheets would require some adjustments, but the editor still does not reflect the page template (see GB10640, GB8948, etc.)

#2 @karmatosed
4 days ago

  • Keywords close added

I am coming to this ticket to see how we can progress and wanted to recap.

  • Based on the post format styling, there are always going to be some issues. As you raised in the editor, @sabernhardt, those are still outstanding.
  • There could be some stylesheet changes, but those wouldn't resolve the issue.

Based on this, I recommend closing this for now and looking to resolve those issues in the core editor. I am happy to be wrong about that recommendation, though.

#3 @aljullu
4 days ago

Thanks for checking, @sabernhardt and @karmatosed!

I tested, and the issue is still reproducible on my end with Twenty Twenty and WordPress 6.6. Adding a paragraph block to a post with the Full Width template shows the text breaking in different words in the frontend vs. the editor. I think it would need to be fixed in the theme CSS and not in the core editor.

Having said that, I'm fine closing this issue if you prefer, given that it's quite old, and it looks like there haven't been any other reports of this.

#4 @sabernhardt
4 days ago

  • Milestone Awaiting Review deleted
  • Resolution set to maybelater
  • Status changed from new to closed

When/if the editor adds a body class such as template-full-width for the page template, this is worth revisiting. For now, I do not think it is feasible.

Note: See TracTickets for help on using tickets.