Skip to content

Commit 2432ab5

Browse files
committed
Removed download and made expand work
1 parent 85c08a9 commit 2432ab5

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

product-image-generator/app/components/GeneratedCard.tsx

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,21 +53,12 @@ export function GeneratedCard({
5353
size="sm"
5454
variant="secondary"
5555
className="w-8 h-8 rounded-full p-0 backdrop-blur-sm bg-white/90 hover:bg-white"
56-
onClick={() => window.open(run?.output?.publicUrl, "_blank")}
57-
disabled={isGenerating}
56+
onClick={() => window.open(metadata?.result?.publicUrl, "_blank")}
57+
disabled={!metadata?.result?.publicUrl}
5858
title="View full size"
5959
>
6060
<Expand className="h-4 w-4" />
6161
</Button>
62-
<Button
63-
size="sm"
64-
variant="secondary"
65-
className="w-8 h-8 rounded-full p-0 backdrop-blur-sm bg-white/90 hover:bg-white"
66-
disabled={isGenerating}
67-
title="Download image"
68-
>
69-
<Download className="h-4 w-4" />
70-
</Button>
7162
</div>
7263
{/* Title overlay */}
7364
<div className="absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/70 to-transparent p-3">

0 commit comments

Comments
 (0)