Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
add thumbnail
Browse files
src/lib/components/models/Card.svelte
CHANGED
@@ -45,7 +45,7 @@
|
|
45 |
on:click={handleClick}
|
46 |
>
|
47 |
<div class="w-full h-[350px] relative z-[1] mb-3 overflow-hidden">
|
48 |
-
<Image src={card
|
49 |
{#if $userStore?.is_admin}
|
50 |
<div
|
51 |
class="absolute flex items-center justify-between bottom-0 left-0 w-full p-5 bg-gradient-to-t from-black to-transparent"
|
|
|
45 |
on:click={handleClick}
|
46 |
>
|
47 |
<div class="w-full h-[350px] relative z-[1] mb-3 overflow-hidden">
|
48 |
+
<Image src={card?.image} generatedImage={card?.gallery?.[0]?.image} className="w-full h-full bg-center bg-cover rounded-lg object-cover object-center bg-neutral-800" alt={card?.id} />
|
49 |
{#if $userStore?.is_admin}
|
50 |
<div
|
51 |
class="absolute flex items-center justify-between bottom-0 left-0 w-full p-5 bg-gradient-to-t from-black to-transparent"
|