From 22e11f707d5efc25f4ee7c9c87b64ce63cab66bd Mon Sep 17 00:00:00 2001 From: Dan Gibbs Date: Sun, 3 May 2026 11:16:38 +0100 Subject: [PATCH] fix: auto height on image defaults, add image anchor --- src/components/Prismic/Image.astro | 16 +++++++++------- src/styles/layout.css | 1 + 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/components/Prismic/Image.astro b/src/components/Prismic/Image.astro index c5ab800..1d1e6de 100644 --- a/src/components/Prismic/Image.astro +++ b/src/components/Prismic/Image.astro @@ -12,10 +12,12 @@ const image = { }; --- -{image.alt} + + {image.alt} + diff --git a/src/styles/layout.css b/src/styles/layout.css index 490164d..b91f1cf 100644 --- a/src/styles/layout.css +++ b/src/styles/layout.css @@ -28,6 +28,7 @@ figure { img { display: block; max-width: 100%; + height: auto; margin: var(--gap) 0; }