File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed
product-image-generator/app/components Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff 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" >
You can’t perform that action at this time.
0 commit comments