Fix tall aspect ratio cameras

This commit is contained in:
Nicolas Mowen 2024-02-08 12:12:47 -07:00
parent dc65720cba
commit 4ee539592b

View File

@ -77,8 +77,8 @@ function Live() {
let grow;
if (camera.detect.width / camera.detect.height > 2) {
grow = "aspect-wide md:col-span-2";
} else if (camera.detect.width / camera.detect.height < 0.7) {
grow = "aspect-tall md:row-span-2";
} else if (camera.detect.width / camera.detect.height < 1) {
grow = "aspect-tall md:aspect-auto md:row-span-2";
} else {
grow = "aspect-video";
}