[wp-trac] [WordPress Trac] #49600: Twenty Twenty: Resized images are centered inside the editor (with no alignment set) since WordPress 5.4

WordPress Trac noreply at wordpress.org
Mon Apr 13 08:29:30 UTC 2020


#49600: Twenty Twenty: Resized images are centered inside the editor (with no
alignment set) since WordPress 5.4
----------------------------------------------------+---------------------
 Reporter:  dianeco                                 |       Owner:  (none)
     Type:  defect (bug)                            |      Status:  new
 Priority:  normal                                  |   Milestone:  5.5
Component:  Bundled Theme                           |     Version:  5.3.2
 Severity:  normal                                  |  Resolution:
 Keywords:  has-patch needs-testing good-first-bug  |     Focuses:  css
----------------------------------------------------+---------------------

Comment (by JavierCasares):

 I just tested and have the same problem... I get the image centered in the
 editor.

 So, I just checked and find that the class adds a

 {{{
 .wp-block-image.is-resized
   display: table;
 }}}

 when is resized, and this is what's causing the centered thing. If you
 disable this "display: table" works...

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


More information about the wp-trac mailing list