Add back black background

This commit is contained in:
Nicolas Mowen 2024-03-25 14:40:04 -06:00
parent 675ea1e55b
commit d2342a9d53

View File

@ -234,7 +234,7 @@ function PreviewVideoPlayer({
return ( return (
<div <div
className={`relative w-full rounded-2xl overflow-hidden ${className ?? ""} ${onClick ? "cursor-pointer" : ""}`} className={`relative w-full rounded-2xl bg-black overflow-hidden ${className ?? ""} ${onClick ? "cursor-pointer" : ""}`}
onClick={onClick} onClick={onClick}
> >
{currentHourFrame && ( {currentHourFrame && (
@ -247,7 +247,7 @@ function PreviewVideoPlayer({
ref={canvasRef} ref={canvasRef}
width={videoWidth} width={videoWidth}
height={videoHeight} height={videoHeight}
className={`absolute h-full left-1/2 -translate-x-1/2 bg-black ${!loaded && hasCanvas ? "" : "hidden"}`} className={`absolute h-full left-1/2 -translate-x-1/2 ${!loaded && hasCanvas ? "" : "hidden"}`}
/> />
<video <video
ref={previewRef} ref={previewRef}
@ -281,7 +281,7 @@ function PreviewVideoPlayer({
<Skeleton className="absolute inset-0" /> <Skeleton className="absolute inset-0" />
)} )}
{cameraPreviews && !currentPreview && ( {cameraPreviews && !currentPreview && (
<div className="absolute inset-0 bg-black text-white rounded-2xl flex justify-center items-center"> <div className="absolute inset-0 text-white rounded-2xl flex justify-center items-center">
No Preview Found No Preview Found
</div> </div>
)} )}