Skip to content

NVR with realtime local object detection for IP cameras

Center camera in layout when only one camera is filtered (#19319)

Nicolas Mowen4f4c8a4fb933
diff --git a/web/src/views/recording/RecordingView.tsx b/web/src/views/recording/RecordingView.tsx
index 18394f4e6e..7cc06da412 100644
--- a/web/src/views/recording/RecordingView.tsx
+++ b/web/src/views/recording/RecordingView.tsx
@@ -657,7 +657,7 @@ export function RecordingView({
containerRef={mainLayoutRef}
/>
</div>
- {isDesktop && (
+ {isDesktop && allCameras.length > 1 && (
<div
ref={previewRowRef}
className={cn(