From 029d8b9ce57f42f6b445c31db85323b235f006c2 Mon Sep 17 00:00:00 2001 From: Lio Date: Wed, 20 Aug 2025 12:25:31 +0200 Subject: [PATCH] chore: adjust cards and images to look better --- src/components/Card.astro | 6 +++--- src/components/Image.astro | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/Card.astro b/src/components/Card.astro index 8c67597..ea7ce46 100644 --- a/src/components/Card.astro +++ b/src/components/Card.astro @@ -1,6 +1,5 @@ --- import pb from "../lib/pb"; - const { href, title, body, image } = Astro.props; let imageURL; @@ -10,11 +9,12 @@ if (image) { ---
- + { image && ( {`Cover diff --git a/src/components/Image.astro b/src/components/Image.astro index 9b78717..5626925 100644 --- a/src/components/Image.astro +++ b/src/components/Image.astro @@ -31,9 +31,9 @@ const showNsfw = Astro.url.searchParams.has('nsfw') || false;
- {`${alt` : ""} ${artist ? `by ${artist}` : ""}`} loading="lazy" /> + {`${alt` : ""} ${artist ? `by ${artist}` : ""}`} loading="lazy" /> { alt && (