summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.changeset/fuzzy-laws-kick.md5
-rw-r--r--packages/astro/components/image.css1
2 files changed, 6 insertions, 0 deletions
diff --git a/.changeset/fuzzy-laws-kick.md b/.changeset/fuzzy-laws-kick.md
new file mode 100644
index 000000000..ad3e33c34
--- /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 87b22128c..6815ec126 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%;