From 72860ae409c1a587f979383677fdf6bc8b6a29ba Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Tue, 10 Sep 2024 15:42:10 -0600 Subject: [PATCH] Cleanup mobile --- .../overlay/detail/SearchDetailDialog.tsx | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/web/src/components/overlay/detail/SearchDetailDialog.tsx b/web/src/components/overlay/detail/SearchDetailDialog.tsx index fa22752bd..e569d2d63 100644 --- a/web/src/components/overlay/detail/SearchDetailDialog.tsx +++ b/web/src/components/overlay/detail/SearchDetailDialog.tsx @@ -1,4 +1,4 @@ -import { isDesktop, isIOS } from "react-device-detect"; +import { isDesktop, isIOS, isMobile } from "react-device-detect"; import { Drawer, DrawerContent, @@ -31,6 +31,7 @@ import { FrigatePlusDialog } from "../dialog/FrigatePlusDialog"; import { Event } from "@/types/event"; import HlsVideoPlayer from "@/components/player/HlsVideoPlayer"; import { baseUrl } from "@/api/baseUrl"; +import { cn } from "@/lib/utils"; const SEARCH_TABS = ["details", "Frigate+", "video"] as const; type SearchTab = (typeof SEARCH_TABS)[number]; @@ -101,14 +102,16 @@ export default function SearchDetailDialog({ className={ isDesktop ? "sm:max-w-xl md:max-w-3xl lg:max-w-4xl xl:max-w-7xl" - : "max-h-[75dvh] overflow-hidden p-2 pb-4" + : "max-h-[75dvh] overflow-hidden px-2 pb-4" } >
Tracked Object Details Tracked object details
- +
(null); + const endTime = useMemo(() => search.end_time ?? Date.now() / 1000, [search]); + return (