[wp-trac] [WordPress Trac] #63276: Content width in block editor styles expects padding (was: Twenty Fourteen: Content width in block editor)

WordPress Trac noreply at wordpress.org
Mon Apr 14 14:16:56 UTC 2025


#63276: Content width in block editor styles expects padding
----------------------------+----------------------
 Reporter:  SergeyKovalets  |       Owner:  (none)
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  6.9
Component:  Bundled Theme   |     Version:  5.0
 Severity:  normal          |  Resolution:
 Keywords:  needs-patch     |     Focuses:  ui, css
----------------------------+----------------------
Changes (by sabernhardt):

 * focuses:  ui => ui, css
 * version:  6.7.2 => 5.0
 * milestone:  Awaiting Review => 6.9


Comment:

 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`:
 {{{
 .wp-block {
         max-width: 474px;
 }

 .wp-block:where(.editor-post-title__block, .editor-block-list__block,
 .editor-default-block-appender) {
         max-width: 504px; /* account for padding in older WordPress
 versions */
 }
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63276#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list