[wp-trac] [WordPress Trac] #52545: Twenty Ten: Image block stretched

WordPress Trac noreply at wordpress.org
Sun Jun 4 05:52:50 UTC 2023


#52545: Twenty Ten: Image block stretched
---------------------------+-------------------------
 Reporter:  melchoyce      |       Owner:  (none)
     Type:  defect (bug)   |      Status:  closed
 Priority:  normal         |   Milestone:
Component:  Bundled Theme  |     Version:
 Severity:  normal         |  Resolution:  worksforme
 Keywords:  has-patch      |     Focuses:  css
---------------------------+-------------------------
Changes (by sabernhardt):

 * status:  new => closed
 * resolution:   => worksforme
 * milestone:  Awaiting Review =>


Comment:

 This seems to work now, with the editor's `block-library` styles:
 {{{
 /* theme.css */
 .wp-block-image {
   margin: 0 0 1em;
 }
 /* style.css */
 .wp-block-image img {
   box-sizing: border-box;
   height: auto;
   max-width: 100%;
   vertical-align: bottom;
 }
 }}}

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


More information about the wp-trac mailing list