Skip to content

NVR with realtime local object detection for IP cameras

Fix History layout for mobile portrait cameras (#20669)

Josh Hawkins2c480b9a895f
diff --git a/web/src/views/recording/RecordingView.tsx b/web/src/views/recording/RecordingView.tsx
index bde6c6d439..44a3d0aabf 100644
--- a/web/src/views/recording/RecordingView.tsx
+++ b/web/src/views/recording/RecordingView.tsx
@@ -710,13 +710,12 @@ export function RecordingView({
? "h-full"
: "w-full"
: cn(
- "flex-shrink-0 pt-2",
+ "flex-shrink-0 portrait:w-full landscape:h-full",
mainCameraAspect == "wide"
? "aspect-wide"
: mainCameraAspect == "tall"
- ? "aspect-tall"
+ ? "aspect-tall portrait:h-full"
: "aspect-video",
- "portrait:w-full landscape:h-full",
),
)}
style={{