Opened 2 weeks ago
Last modified 2 weeks ago
#63276 new defect (bug)
Content width in block editor styles expects padding
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 6.9 | Priority: | normal |
Severity: | normal | Version: | 5.0 |
Component: | Bundled Theme | Keywords: | needs-patch |
Focuses: | ui, css | Cc: |
Description
When using the block editor, the content width while creating/editing a post is different from what is displayed after publishing on the site. When creating a post, I can't be sure how it will look once published.
If I use the classic editor, everything is fine — the way it looks while creating is exactly how it looks after publishing.
Change History (1)
Note: See
TracTickets for help on using
tickets.
All themes from Twenty Ten to Twenty Seventeen added 30 pixels to the width of
.wp-block
'to account for padding' in [44152]. WordPress 5.4 removed that padding, but the number was already inaccurate with WP 5.0. (Left and right padding were set to 14 pixels for small screens, or 43 pixels each for larger screens.)To accommodate older versions of WordPress, Twenty Fourteen probably could set the width like this in
editor-blocks.css
: