Skip to content

Commit 3fd0ea8

Browse files
committed
small tweaks
1 parent 839ddc2 commit 3fd0ea8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/components/video-card.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ function ThumbnailPlaceholder(props: ThumbnailPlaceholderProps) {
278278
}, [runs, props.videoId, queryClient]);
279279

280280
return (
281-
<div className="transition-transform duration-200 ease-in-out group-hover/video:scale-105 w-full h-2/3 flex flex-col gap-2 items-center justify-center">
281+
<div className="transition-transform duration-200 ease-in-out group-hover/video:scale-105 w-full h-2/3 flex flex-col gap-2 items-center justify-center bg-zinc-950">
282282
<Loader2Icon className="w-12 h-12 aspect-square animate-spin text-muted" />
283283
</div>
284284
);

app/server-fns/videos.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export const deleteVideoServerFn = createServerFn({ method: "POST" })
9595
};
9696
}
9797

98-
return { success: true, message: "Video queue for deletion" };
98+
return { success: true, message: "Video queued for deletion" };
9999
});
100100

101101
export const onUploadCancelledServerFn = createServerFn({ method: "POST" })
@@ -125,7 +125,7 @@ export const onUploadCancelledServerFn = createServerFn({ method: "POST" })
125125
(
126126
SELECT SUM(${videos.fileSizeBytes})
127127
FROM ${videos}
128-
WHERE ${videos.authorId} = ${context.userId}
128+
WHERE ${videos.authorId} = ${context.userId} AND ${videos.status} != 'deleting'
129129
),
130130
0
131131
)

0 commit comments

Comments
 (0)