From d416ae86d751f8640c32fb2d70c67d7132266d7d Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Wed, 28 Feb 2024 13:24:49 -0700 Subject: [PATCH] Fix tall cameras not fitting in current hour frame (#10136) --- .../player/PreviewThumbnailPlayer.tsx | 27 +++++++++---------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/web/src/components/player/PreviewThumbnailPlayer.tsx b/web/src/components/player/PreviewThumbnailPlayer.tsx index 2e37901d6..e5f84dcc1 100644 --- a/web/src/components/player/PreviewThumbnailPlayer.tsx +++ b/web/src/components/player/PreviewThumbnailPlayer.tsx @@ -65,7 +65,6 @@ export default function PreviewThumbnailPlayer({ onSwipedLeft: () => setPlayback(false), onSwipedRight: () => setPlayback(true), preventScrollOnSwipe: true, - }); const handleSetReviewed = useCallback(() => { @@ -110,14 +109,14 @@ export default function PreviewThumbnailPlayer({
onPlayback(true)} onMouseLeave={isMobile ? undefined : () => onPlayback(false)} onClick={handleOnClick} {...swipeHandlers} > {playingBack && ( -
+
-
+
{(review.severity == "alert" || review.severity == "detection") && ( {review.data.objects.map((object) => { - return getIconForLabel(object, "w-3 h-3 text-white"); + return getIconForLabel(object, "size-3 text-white"); })} {review.data.audio.map((audio) => { - return getIconForLabel(audio, "w-3 h-3 text-white"); + return getIconForLabel(audio, "size-3 text-white"); })} {review.data.sub_labels?.map((sub) => { - return getIconForSubLabel(sub, "w-3 h-3 text-white"); + return getIconForSubLabel(sub, "size-3 text-white"); })} )}
-
+
{formattedDate} @@ -174,7 +173,7 @@ export default function PreviewThumbnailPlayer({
{playingBack && ( )} {!playingBack && imgLoaded && review.has_been_reviewed && ( -
+
)}
@@ -298,7 +297,7 @@ function PreviewContent({ return (