Skip to content

Commit

Permalink
Set image width to fit-content to solve aspect ratio problems in Fi…
Browse files Browse the repository at this point in the history
…refox. (WordPress#66217)
  • Loading branch information
juanfra authored Oct 22, 2024
1 parent fe56004 commit 0e65adc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/block-library/src/image/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
max-width: 100%;
vertical-align: bottom;
box-sizing: border-box;
width: fit-content;

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

0 comments on commit 0e65adc

Please sign in to comment.