[wp-trac] [WordPress Trac] #53409: WordPress 5.8 - widgets as blocks - max-width is missing for custom icons

WordPress Trac noreply at wordpress.org
Tue Jul 20 14:57:47 UTC 2021


#53409: WordPress 5.8 - widgets as blocks - max-width is missing for custom icons
--------------------------+------------------------
 Reporter:  harmr         |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Widgets       |     Version:
 Severity:  normal        |  Resolution:  duplicate
 Keywords:                |     Focuses:  css
--------------------------+------------------------
Changes (by ocean90):

 * keywords:  needs-patch reporter-feedback =>
 * status:  new => closed
 * resolution:   => duplicate
 * milestone:  Future Release =>


Old description:

> With our plugin www.mapsmarker.com we use a custom block which with WP
> 5.8 can also be now added as widget. For this block we added a custom SVG
> - with WP 5.8-beta1 though, this image is not resized:
> [[Image(https://www.mapsmarker.com/widget-icon-unresized.PNG)]]
>
> It would be great if the CSS style max-width:100% could be added to those
> custom icons, so that the icon is displayed with the proper size:
> [[Image(https://www.mapsmarker.com/widget-icon-resized.PNG)]]

New description:

 With our plugin www.mapsmarker.com we use a custom block which with WP 5.8
 can also be now added as widget. For this block we added a custom SVG -
 with WP 5.8-beta1 though, this image is not resized:
 [[Image(ticket:53409:widget-icon-unresized.PNG)]]

 It would be great if the CSS style max-width:100% could be added to those
 custom icons, so that the icon is displayed with the proper size:
 [[Image(ticket:53409:widget-icon-resized.PNG)]]

--

Comment:

 While this ticket was reported first I'm going to close it as a duplicate
 of #53693 which has a bit more information.

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


More information about the wp-trac mailing list