Skip to content

Commit 2103991

Browse files
authored
fix: set height: auto for responsive images (#13711)
1 parent 3bdc7af commit 2103991

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

‎.changeset/fuzzy-laws-kick.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'astro': patch
3+
---
4+
5+
Fixes height for responsive images

‎packages/astro/components/image.css‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
:where([data-astro-image]) {
22
object-fit: var(--fit);
33
object-position: var(--pos);
4+
height: auto;
45
}
56
:where([data-astro-image='full-width']) {
67
width: 100%;

0 commit comments

Comments
 (0)