Skip to content

Commit

Permalink
Set the fit-content width for images that are not .svg (#66643)
Browse files Browse the repository at this point in the history
Co-authored-by: juanfra <[email protected]>
Co-authored-by: aaronrobertshaw <[email protected]>
Co-authored-by: kevin940726 <[email protected]>
Co-authored-by: getdave <[email protected]>
  • Loading branch information
5 people authored and gutenbergplugin committed Nov 4, 2024
1 parent 5d0412a commit 26d154b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/block-library/src/image/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
max-width: 100%;
vertical-align: bottom;
box-sizing: border-box;
width: fit-content;

&:not([src$=".svg"]) {
width: fit-content;
}

@media (prefers-reduced-motion: no-preference) {
&.hide {
Expand Down

0 comments on commit 26d154b

Please sign in to comment.