From 1beb990f43b6d8c0fe4df326ccfbf9a4ddb42e8b Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Mon, 12 Feb 2024 09:02:04 -0600 Subject: [PATCH] add subtle overlay gradient --- web/src/components/player/LivePlayer.tsx | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/web/src/components/player/LivePlayer.tsx b/web/src/components/player/LivePlayer.tsx index 1c41f9ca5..2841a47a5 100644 --- a/web/src/components/player/LivePlayer.tsx +++ b/web/src/components/player/LivePlayer.tsx @@ -40,7 +40,10 @@ export default function LivePlayer({ const { activeMotion, activeAudio, activeTracking } = useCameraActivity(cameraConfig); - const cameraActive = useMemo(() => activeMotion || activeTracking, [activeMotion, activeTracking]) + const cameraActive = useMemo( + () => activeMotion || activeTracking, + [activeMotion, activeTracking] + ); const liveMode = useCameraLiveMode(cameraConfig, preferredLiveMode); const [liveReady, setLiveReady] = useState(false); @@ -168,8 +171,10 @@ export default function LivePlayer({ : "outline-0" } transition-all duration-500 ${className}`} > - {(showStillWithoutActivity == false || cameraActive) && - player} +
+ + + {(showStillWithoutActivity == false || cameraActive) && player}