[wp-trac] [WordPress Trac] #61202: Gallery Block Columns Broken

WordPress Trac noreply at wordpress.org
Sun May 12 17:10:17 UTC 2024


#61202: Gallery Block Columns Broken
--------------------------+------------------------------
 Reporter:  miqrogroove   |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  6.2.2
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by miqrogroove):

 I found part of the code that makes the editor work under {{{wp-
 includes/blocks/gallery/style.css}}}

 It looks like this...

 {{{
 .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-
 image){
   margin:0;
   width:calc(50% - var(--wp--style--unstable-gallery-gap, 16px)/2);
 }
 @media (min-width:600px){
   .wp-block-gallery.has-nested-images.columns-3 figure.wp-block-image:not
 (#individual-image){
     width:calc(33.33333% - var(--wp--style--unstable-gallery-gap,
 16px)*.66667);
   }
 }}}

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


More information about the wp-trac mailing list