fix ios z-index scrolling bug

This commit is contained in:
Josh Hawkins 2024-04-05 08:25:51 -05:00
parent fb7cfe5471
commit a6034be709

View File

@ -839,8 +839,8 @@ function MotionReview({
return ( return (
<div key={camera.name} className={`relative ${spans}`}> <div key={camera.name} className={`relative ${spans}`}>
{motionData ? ( {motionData ? (
<>
<PreviewPlayer <PreviewPlayer
key={camera.name}
className={`rounded-2xl ${spans} ${grow}`} className={`rounded-2xl ${spans} ${grow}`}
camera={camera.name} camera={camera.name}
timeRange={currentTimeRange} timeRange={currentTimeRange}
@ -858,12 +858,13 @@ function MotionReview({
}) })
} }
/> />
<div
className={`review-item-ring pointer-events-none z-20 absolute rounded-lg inset-0 size-full -outline-offset-[2.8px] outline outline-[3px] ${detectionType ? `outline-severity_${detectionType} shadow-severity_${detectionType}` : "outline-transparent duration-500"}`}
/>
</>
) : ( ) : (
<Skeleton className={`rounded-2xl ${spans} ${grow}`} /> <Skeleton className={`rounded-2xl ${spans} ${grow}`} />
)} )}
<div
className={`review-item-ring pointer-events-none z-10 absolute rounded-lg inset-0 size-full -outline-offset-[2.8px] outline outline-[3px] ${detectionType ? `outline-severity_${detectionType} shadow-severity_${detectionType}` : "outline-transparent duration-500"}`}
/>
</div> </div>
); );
})} })}
@ -894,7 +895,7 @@ function MotionReview({
dense={isMobile} dense={isMobile}
/> />
) : ( ) : (
<Skeleton className="rounded-2xl size-full" /> <Skeleton className="size-full" />
)} )}
</div> </div>