Fix events shadow

This commit is contained in:
Nicolas Mowen 2024-03-27 16:10:39 -06:00
parent dd8e83aeea
commit 023931022e

View File

@ -483,24 +483,26 @@ function Timeline({
return ( return (
<div <div
className={`${isDesktop ? "w-60" : "w-full"} h-full relative p-4 flex flex-col gap-4 bg-secondary overflow-auto`} className={`${isDesktop ? "w-60" : "w-full"} h-full relative p-4 flex flex-col gap-4 bg-secondary`}
> >
<div className="absolute top-0 inset-x-0 z-20 w-full h-[30px] bg-gradient-to-b from-secondary to-transparent pointer-events-none"></div> <div className="absolute top-0 inset-x-0 z-20 w-full h-[30px] bg-gradient-to-b from-secondary to-transparent pointer-events-none"></div>
<div className="absolute bottom-0 inset-x-0 z-20 w-full h-[30px] bg-gradient-to-t from-secondary to-transparent pointer-events-none"></div> <div className="absolute bottom-0 inset-x-0 z-20 w-full h-[30px] bg-gradient-to-t from-secondary to-transparent pointer-events-none"></div>
{mainCameraReviewItems.map((review) => { <div className="h-full overflow-auto">
if (review.severity == "significant_motion") { {mainCameraReviewItems.map((review) => {
return; if (review.severity == "significant_motion") {
} return;
}
return ( return (
<ReviewCard <ReviewCard
key={review.id} key={review.id}
event={review} event={review}
currentTime={currentTime} currentTime={currentTime}
onClick={() => setCurrentTime(review.start_time)} onClick={() => setCurrentTime(review.start_time)}
/> />
); );
})} })}
</div>
</div> </div>
); );
} }