Recording fixes (#10728)

* Use timerange everywhere and ensure recordings has last 24 hours

* Pause recording when selecting timeline

* Fix loading layout

* Fix updating current time not always working

* Simplify dynamic video player

* Clean up desktop sizing

* Fix current hour

* Make padding consistent

* Improve spacing for extra cameras

* Make back button consistent

* Fix preview player not jumping to correct time

* Dont use useEffect due to preview changing

* Simplify

* Fix transition
This commit is contained in:
Nicolas Mowen
2024-03-30 13:44:12 -05:00
committed by GitHub
parent 7d3b481181
commit 190cdc471a
12 changed files with 210 additions and 183 deletions
+3 -3
View File
@@ -129,9 +129,9 @@ export default function LiveDashboardView({
const birdseyeConfig = useMemo(() => config?.birdseye, [config]);
return (
<div className="size-full overflow-y-auto">
<div className="size-full p-2 overflow-y-auto">
{isMobile && (
<div className="h-11 px-2 relative flex items-center justify-between">
<div className="h-11 relative flex items-center justify-between">
<Logo className="absolute inset-x-1/2 -translate-x-1/2 h-8" />
<CameraGroupSelector />
<div className="flex items-center gap-1">
@@ -164,7 +164,7 @@ export default function LiveDashboardView({
{events && events.length > 0 && (
<ScrollArea>
<TooltipProvider>
<div className="flex gap-2 items-center">
<div className="px-1 flex gap-2 items-center">
{events.map((event) => {
return <AnimatedEventCard key={event.id} event={event} />;
})}