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 Nov 4, 2024
1 parent 238451e commit 1ec454c
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

1 comment on commit 1ec454c

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 1ec454c.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/11662230615
📝 Reported issues:

Please sign in to comment.