Skip to content

Commit 7d26aa8

Browse files
D-K-Pmatt-aitken
authored andcommitted
More UI improvements
1 parent c5fcf7d commit 7d26aa8

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,13 @@ export default function GeneratedCard({
248248
) : (
249249
// Show loading/waiting state
250250
<div className="h-full flex flex-col items-center justify-center p-6 text-center">
251-
<div className="w-12 h-12 rounded-lg bg-gray-300/20 flex items-center justify-center mb-4">
251+
<div
252+
className={`w-12 h-12 rounded-lg flex items-center justify-center mb-4 ${
253+
isTaskRunning && generationProgress === "generating"
254+
? ""
255+
: "bg-gray-300/20"
256+
}`}
257+
>
252258
{isTaskRunning && generationProgress === "generating" ? (
253259
<div className="animate-spin h-6 w-6">
254260
<Loader2 className="h-6 w-6 text-gray-500" />

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ export default function UploadCard({
186186
) : isUploading || isLoading || run?.id || progress ? (
187187
// Show progress state when loading or run exists
188188
<div className="h-full flex flex-col items-center justify-center p-6 text-center">
189-
<div className="w-8 h-8 rounded-full flex items-center justify-center mb-4 transition-colors ">
189+
<div className="w-8 h-8 rounded-full flex items-center justify-center mb-4">
190190
<div className="animate-spin rounded-full h-6 w-6">
191191
<LucideLoader className="h-6 w-6 text-gray-500" />
192192
</div>

0 commit comments

Comments
 (0)