[wp-trac] [WordPress Trac] #54452: Image Aspect Ratio on resize

WordPress Trac noreply at wordpress.org
Tue Nov 16 10:54:08 UTC 2021


#54452: Image Aspect Ratio on resize
-------------------------+-----------------------------
 Reporter:  edgarwes     |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Media        |    Version:  5.8.2
 Severity:  trivial      |   Keywords:  needs-patch
  Focuses:  ui, css      |
-------------------------+-----------------------------
 With the picture block the css resize the picture width but never the
 height so it break is aspect ratio.

 Just need to add a height: auto to .wp-block-image img .

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54452>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list