From 063ed05738d86141e72a8b1ac467d6762d04f2bd Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Thu, 8 Feb 2024 11:50:32 -0700 Subject: [PATCH] Animate visibility of chips --- web/src/components/player/LivePlayer.tsx | 18 +++++++++++++++--- web/src/pages/Live.tsx | 2 +- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/web/src/components/player/LivePlayer.tsx b/web/src/components/player/LivePlayer.tsx index 4e23b698d..aa63d3f08 100644 --- a/web/src/components/player/LivePlayer.tsx +++ b/web/src/components/player/LivePlayer.tsx @@ -175,7 +175,11 @@ export default function LivePlayer({ {liveChips && (
- + Motion
{cameraConfig.audio.enabled_in_config && ( - + Sound )} - + 2) { grow = "aspect-wide md:col-span-2"; - } else if (camera.detect.width / camera.detect.height < 1) { + } else if (camera.detect.width / camera.detect.height < 0.7) { grow = "aspect-tall md:row-span-2"; } else { grow = "aspect-video";