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}