From 8af8db0714a9a15be4c545d82722c6a2e118d331 Mon Sep 17 00:00:00 2001 From: Max Richter Date: Wed, 14 May 2025 16:40:37 +0200 Subject: [PATCH] fix: dont try to use icons as img src --- src/components/HeroCard.astro | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/HeroCard.astro b/src/components/HeroCard.astro index 532a231..e5cc0be 100644 --- a/src/components/HeroCard.astro +++ b/src/components/HeroCard.astro @@ -31,7 +31,14 @@ const link = translatePath(`/${collection}/${id.split("/")[0]}`); classes={`grid gradient border-1 border-neutral overflow-hidden ${cover ? "grid-rows-[200px_1fr] xs:grid-rows-none xs:grid-cols-[1fr_200px]" : ""}`}> - {icon && } + { + icon && + ( + icon?.length > 5 + ? + : {icon} + ) + } {title}