Skip to content

Commit

Permalink
Fix img proportions fallback for images that have width and height se…
Browse files Browse the repository at this point in the history
…t, T-23188
  • Loading branch information
ronilaukkarinen committed Dec 3, 2024
1 parent f5297f2 commit 6739361
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
### [Unreleased]

* Fix body styles leaking to wp-admin
* Fix img proportions fallback for images that have width and height set, T-23188

### 9.4.6: 2024-11-19

Expand Down
8 changes: 6 additions & 2 deletions css/dev/global.css

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions css/dev/gutenberg-editor-styles.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/prod/global.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/prod/gutenberg-editor-styles.css

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion sass/gutenberg/formatting/_img.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
}

img {
height: auto;
max-width: 100%;
}

/* For images that have width and height set, T-23188 */
img[width][height] {
height: auto;
}

0 comments on commit 6739361

Please sign in to comment.