diff --git a/web/src/views/events/EventView.tsx b/web/src/views/events/EventView.tsx
index b8167b7dd..f66f45858 100644
--- a/web/src/views/events/EventView.tsx
+++ b/web/src/views/events/EventView.tsx
@@ -1284,7 +1284,7 @@ function MotionReview({
return (
<>
- {motionPreviewsCamera && selectedMotionPreviewCamera ? (
+ {selectedMotionPreviewCamera && (
<>
>
- ) : (
-
-
3 &&
- isMobile &&
- "portrait:md:grid-cols-2 landscape:md:grid-cols-3",
- isDesktop && "grid-cols-2 lg:grid-cols-3",
- "gap-2 overflow-auto px-1 md:mx-2 md:gap-4 xl:grid-cols-3 3xl:grid-cols-4",
- )}
- >
- {reviewCameras.map((camera) => {
- let grow;
- let spans;
- const aspectRatio = camera.detect.width / camera.detect.height;
- if (aspectRatio > 2) {
- grow = "aspect-wide";
- spans = "sm:col-span-2";
- } else if (aspectRatio < 1) {
- grow = "h-full aspect-tall";
- spans = "md:row-span-2";
- } else {
- grow = "aspect-video";
- }
- const detectionType = getDetectionType(camera.name);
- return (
-
- {motionData ? (
- <>
-
{
- videoPlayersRef.current[camera.name] = controller;
- }}
- onClick={() =>
- onOpenRecording({
- camera: camera.name,
- startTime: Math.min(
- currentTime,
- Date.now() / 1000 - 30,
- ),
- severity: "significant_motion",
- })
- }
- />
-
-
-
-
- e.stopPropagation()}
- >
-
-
-
-
- {
- e.stopPropagation();
- setMotionPreviewsCamera(camera.name);
- }}
- >
- {t("motionPreviews.menuItem")}
-
- {
- e.stopPropagation();
- setMotionSearchCamera(camera.name);
- }}
- >
- {t("motionSearch.menuItem")}
-
-
-
-
- >
- ) : (
-
- )}
-
- );
- })}
-
-
)}
+
+
3 &&
+ isMobile &&
+ "portrait:md:grid-cols-2 landscape:md:grid-cols-3",
+ isDesktop && "grid-cols-2 lg:grid-cols-3",
+ "gap-2 overflow-auto px-1 md:mx-2 md:gap-4 xl:grid-cols-3 3xl:grid-cols-4",
+ )}
+ >
+ {reviewCameras.map((camera) => {
+ let grow;
+ let spans;
+ const aspectRatio = camera.detect.width / camera.detect.height;
+ if (aspectRatio > 2) {
+ grow = "aspect-wide";
+ spans = "sm:col-span-2";
+ } else if (aspectRatio < 1) {
+ grow = "h-full aspect-tall";
+ spans = "md:row-span-2";
+ } else {
+ grow = "aspect-video";
+ }
+ const detectionType = getDetectionType(camera.name);
+ return (
+
+ {motionData ? (
+ <>
+
{
+ videoPlayersRef.current[camera.name] = controller;
+ }}
+ onClick={() =>
+ onOpenRecording({
+ camera: camera.name,
+ startTime: Math.min(
+ currentTime,
+ Date.now() / 1000 - 30,
+ ),
+ severity: "significant_motion",
+ })
+ }
+ />
+
+
+
+
+ e.stopPropagation()}
+ >
+
+
+
+
+ {
+ e.stopPropagation();
+ setMotionPreviewsCamera(camera.name);
+ }}
+ >
+ {t("motionPreviews.menuItem")}
+
+ {
+ e.stopPropagation();
+ setMotionSearchCamera(camera.name);
+ }}
+ >
+ {t("motionSearch.menuItem")}
+
+
+
+
+ >
+ ) : (
+
+ )}
+
+ );
+ })}
+
+
{!selectedMotionPreviewCamera && (
{motionData ? (