[wp-trac] [WordPress Trac] #48697: Twenty Nineteen - Linked Image Block Images Display Issue

WordPress Trac noreply at wordpress.org
Fri Feb 18 06:19:30 UTC 2022


#48697: Twenty Nineteen - Linked Image Block Images Display Issue
---------------------------+---------------------
 Reporter:  JarretC        |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  6.0
Component:  Bundled Theme  |     Version:
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |     Focuses:  css
---------------------------+---------------------
Changes (by sabernhardt):

 * focuses:   => css
 * milestone:  Awaiting Review => 6.0


Comment:

 Thanks for the report and the original patch!

 r45605 added that max-width, and the SCSS comment explains that it does
 not belong on images that are aligned left, right or center. Those have a
 `figure` in between the `wp-block-image` class and the image, so the child
 selector did not affect them.
 {{{
 <div class="wp-block-image">
         <figure class="aligncenter">
                 <img />
         </figure>
 </div>
 }}}

 In addition to adjusting styles for linked images, the captions apparently
 need the `max-width` to match the content width for proper centering. And
 in columns, the images need to go back to `max-width: 100%`.

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


More information about the wp-trac mailing list