[wp-trac] [WordPress Trac] #53693: Block icons too big on 5.8 widgets page

WordPress Trac noreply at wordpress.org
Mon Jul 19 17:23:22 UTC 2021


#53693: Block icons too big on 5.8 widgets page
--------------------------+-----------------------------
 Reporter:  mnelson4      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Widgets       |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:  ui            |
--------------------------+-----------------------------
 [https://en-ca.wordpress.org/plugins/yet-another-related-posts-plugin/ Our
 plugin] adds a block using an SVG image which still looks fine on the
 blocks page. But on the widgets page introduced in WP 5.8, our block's
 icon is way too big and spills into the surrounding areas.
 See [[Image(https://i.imgur.com/ut0vOSv.png)]]

 On the post editing page, where the icon still looks fine, I see this
 critical CSS:


 {{{
 .block-editor__container img {
     max-width: 100%;
     height: auto;
 }
 }}}

 It seems on the widgets page there is no `block-editor__container` so the
 styles don't apply, and icons like ours are unstyled.

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


More information about the wp-trac mailing list