3 || isTablet || isDesktop) &&
+ "grid-cols-2",
+ "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;
@@ -874,13 +880,12 @@ function MotionReview({
const aspectRatio = camera.detect.width / camera.detect.height;
if (aspectRatio > 2) {
grow = "aspect-wide";
- spans = "sm:col-span-2";
+ spans = reviewCameras.length > 3 && "col-span-2";
} else if (aspectRatio < 1) {
grow = "md:h-full aspect-tall";
- spans = "md:row-span-2";
+ spans = "row-span-2";
} else {
grow = "aspect-video";
- spans = "";
}
const detectionType = getDetectionType(camera.name);
return (
diff --git a/web/src/views/live/LiveDashboardView.tsx b/web/src/views/live/LiveDashboardView.tsx
index ac7ffdebe..4d09e8b9c 100644
--- a/web/src/views/live/LiveDashboardView.tsx
+++ b/web/src/views/live/LiveDashboardView.tsx
@@ -243,9 +243,17 @@ export default function LiveDashboardView({
>
{includeBirdseye && birdseyeConfig?.enabled && (
{
+ const aspectRatio =
+ birdseyeConfig.width / birdseyeConfig.height;
+ if (aspectRatio > 2) {
+ return `${mobileLayout == "grid" && "col-span-2"} aspect-wide`;
+ } else if (aspectRatio < 1) {
+ return `${mobileLayout == "grid" && "row-span-2 md:h-full"} aspect-tall`;
+ } else {
+ return "aspect-video";
+ }
+ })()}
ref={birdseyeContainerRef}
>
2) {
- grow = `${mobileLayout == "grid" ? "col-span-2" : ""} aspect-wide`;
+ grow = `${mobileLayout == "grid" && "col-span-2"} aspect-wide`;
} else if (aspectRatio < 1) {
- grow = `${mobileLayout == "grid" ? "row-span-2 aspect-tall md:h-full" : ""} aspect-tall`;
+ grow = `${mobileLayout == "grid" && "row-span-2 md:h-full"} aspect-tall`;
} else {
grow = "aspect-video";
}
diff --git a/web/src/views/system/GeneralMetrics.tsx b/web/src/views/system/GeneralMetrics.tsx
index be083af5c..585187ed9 100644
--- a/web/src/views/system/GeneralMetrics.tsx
+++ b/web/src/views/system/GeneralMetrics.tsx
@@ -445,7 +445,7 @@ export default function GeneralMetrics({
)}
-
+
{statsHistory.length != 0 ? (