[wp-trac] [WordPress Trac] #56175: Twenty Twenty: Latest Posts block set to 2 columns displays single column in editor (was: Twenty-twenty: column blocks set to 2 displays single column in editor)

WordPress Trac noreply at wordpress.org
Mon Jul 11 15:36:22 UTC 2022


#56175: Twenty Twenty: Latest Posts block set to 2 columns displays single column
in editor
-------------------------------------------------+-------------------------
 Reporter:  smit08                               |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  6.1
Component:  Bundled Theme                        |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-testing-info has-patch needs-    |     Focuses:  css
  refresh                                        |
-------------------------------------------------+-------------------------
Changes (by sabernhardt):

 * keywords:  has-testing-info has-patch dev-feedback => has-testing-info
     has-patch needs-refresh
 * focuses:   => css


Comment:

 The value would need to be less than 12 pixels (perhaps 10) to stay in two
 columns at widths just wider than the 600px breakpoint.

 Another possibility is using `:where()` in the selector for margins so
 when the editor changes the right margin to zero for `li` elements in the
 last column, it still applies. Then it could use the 'em' values defined
 for the front end.
 {{{
 .editor-styles-wrapper ul.wp-block-latest-posts:where(.is-grid) li` {
   margin: 0 1.25em 1.25em 0;
 }
 }}}

 Also note: the RTL stylesheet needs to be compiled and updated before
 committing.

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


More information about the wp-trac mailing list