fix: dont try to use icons as img src
This commit is contained in:
parent
59eeadd4b3
commit
8af8db0714
@ -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]" : ""}`}>
|
||||
<Card.Content classes="px-8 py-7 order-last xs:order-first">
|
||||
<Card.Title classes="text-4xl flex items-center gap-2">
|
||||
{icon && <img src={icon} class="h-6 w-6" />}
|
||||
{
|
||||
icon &&
|
||||
(
|
||||
icon?.length > 5
|
||||
? <img class="h-6 w-6" src={icon} />
|
||||
: <span class="p-r-4 text-md">{icon}</span>
|
||||
)
|
||||
}
|
||||
{title}
|
||||
</Card.Title>
|
||||
<Card.Description>
|
||||
|
Loading…
x
Reference in New Issue
Block a user