Skip to content

Commit 865cd16

Browse files
D-K-Pmatt-aitken
authored andcommitted
Fixed custom prompt card
1 parent 2b5136f commit 865cd16

1 file changed

Lines changed: 7 additions & 10 deletions

File tree

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

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ export default function CustomPromptCard({
9494
baseImageUrl,
9595
productAnalysis,
9696
customPrompt: customPrompt.trim(),
97-
model: "flux",
9897
size: "1024x1792",
9998
});
10099

@@ -126,7 +125,6 @@ export default function CustomPromptCard({
126125
baseImageUrl,
127126
productAnalysis,
128127
customPrompt: customPrompt.trim(),
129-
model: "flux",
130128
size: "1024x1792",
131129
});
132130

@@ -279,18 +277,17 @@ export default function CustomPromptCard({
279277
</div>
280278
) : (
281279
// Show blank state (same as GeneratedCard but no text)
282-
<div className="h-full flex flex-col items-center justify-center p-6 text-center">
280+
<div
281+
onClick={!baseImageUrl ? undefined : () => setShowForm(true)}
282+
className={`h-full flex flex-col items-center justify-center p-6 text-center cursor-pointer hover:bg-gray-50/50 transition-colors ${
283+
!baseImageUrl ? "pointer-events-none" : ""
284+
}`}
285+
>
283286
<div className="w-12 h-12 rounded-lg bg-gray-300/20 flex items-center justify-center mb-4">
284287
{isGenerating ? (
285288
<div className="animate-spin rounded-full h-6 w-6 border-b-2 border-primary"></div>
286289
) : baseImageUrl && productAnalysis ? (
287-
<Button
288-
size="sm"
289-
onClick={() => setShowForm(true)}
290-
className="w-8 h-8 rounded-full p-0"
291-
>
292-
<Sparkles className="h-4 w-4" />
293-
</Button>
290+
<Sparkles className="h-4 w-4" />
294291
) : (
295292
<ImageIcon className="h-6 w-6 text-muted-foreground" />
296293
)}

0 commit comments

Comments
 (0)