Skip to content

Commit

Permalink
Set the fit-content width for images that are not .svg (WordPress…
Browse files Browse the repository at this point in the history
…#66643)

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 karthick-murugan committed Nov 13, 2024
1 parent 6ccb4de commit b3579a3
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 b3579a3

Please sign in to comment.