diff --git a/components/video-card.tsx b/components/video-card.tsx index 57b4599..27c6228 100644 --- a/components/video-card.tsx +++ b/components/video-card.tsx @@ -182,99 +182,115 @@ export function VideoCard({ video, projectId, onDeleted }: VideoCardProps) { return ( <> - - - {/* Thumbnail */} -
- {imgError ? ( -
- - Processing... -
- ) : ( - // eslint-disable-next-line @next/next/no-img-element - {video.title} { - setImgError(true); - // Check again after 10 seconds in case Bunny is still processing - setTimeout(() => { - setRetryKey(Date.now()); - setImgError(false); - }, 10000); - }} - /> - )} - {!imgError && ( -
- -
- )} - {video.duration} -
- +
+ + + {/* Thumbnail */} +
+ {imgError ? ( +
+ + Processing... +
+ ) : ( + // eslint-disable-next-line @next/next/no-img-element + {video.title} { + setImgError(true); + // Check again after 10 seconds in case Bunny is still processing + setTimeout(() => { + setRetryKey(Date.now()); + setImgError(false); + }, 10000); + }} + /> + )} + {!imgError && ( +
+ +
+ )} + {video.duration} +
+ - -
- -

{video.title}

-
- - - v{video.currentVersion} - - - - - {video.commentCount} - - - - {video.lastUpdated} - -
- + +
+ +

{video.title}

+
+ + + v{video.currentVersion} + + + + + {video.commentCount} + + + + {video.lastUpdated} + +
+ - - - - - - - - - Share - - - setShowEditDialog(true)}> - - Edit - - setShowVersionDialog(true)}> - - Add Version - - setShowDeleteDialog(true)} - > - - Delete - - - + + + + + + + + + Share + + + setShowEditDialog(true)}> + + Edit + + setShowVersionDialog(true)}> + + Add Version + + setShowDeleteDialog(true)} + > + + Delete + + + +
+
+ + + {isDeleting && ( +
+
+ + Deleting... +
- - + )} +
{/* Edit Dialog */}