diff --git a/.changeset/fuzzy-laws-kick.md b/.changeset/fuzzy-laws-kick.md new file mode 100644 index 000000000000..ad3e33c344a7 --- /dev/null +++ b/.changeset/fuzzy-laws-kick.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Fixes height for responsive images diff --git a/packages/astro/components/image.css b/packages/astro/components/image.css index 87b22128cbe3..6815ec126797 100644 --- a/packages/astro/components/image.css +++ b/packages/astro/components/image.css @@ -1,6 +1,7 @@ :where([data-astro-image]) { object-fit: var(--fit); object-position: var(--pos); + height: auto; } :where([data-astro-image='full-width']) { width: 100%;