[wp-trac] [WordPress Trac] #59378: Image Aspect Ratio Not Staying Fixed In Mobile View

WordPress Trac noreply at wordpress.org
Fri Oct 6 05:28:27 UTC 2023


#59378: Image Aspect Ratio Not Staying Fixed In Mobile View
--------------------------+------------------------------
 Reporter:  gpwebnut      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  6.3.1
 Severity:  major         |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by robemilak):

 Hi!

 Confirming the same thing on my sites. The reason for this is WordPress
 update 6.3. where they added a new feature to Image Blocks, aspect ratio.
 Now, every image that had manually added height is wrongly shown on both
 mobile and desktop (mostly on mobile because of the screen's width).

 For example, if I add an image that is 1000×500 and leave width and height
 as Auto, it is okay. But, if I resize that image, to 998×449, it will get
 broken, because now, WordPress is putting height to fixed value (449) and
 adjusting the width, which gets the image reshapen.

 We've returned WordPress to 6.2., and it is okay for now. But that is not
 a solution for the long run.

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


More information about the wp-trac mailing list