From 8e878cd9c44f5072de46a50b593cf2dfdd341a15 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Thu, 4 Jun 2026 10:11:21 -0500 Subject: [PATCH] apply safe area insets to mobile layout in PWA mode using viewport-fit=cover --- web/index.html | 2 +- web/src/App.tsx | 4 +++- web/src/components/mobile/MobilePage.tsx | 7 ++++--- web/src/components/navigation/Bottombar.tsx | 12 ++++++------ web/src/components/ui/drawer.tsx | 7 ++----- 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/web/index.html b/web/index.html index be6b302f5c..bb019d4263 100644 --- a/web/index.html +++ b/web/index.html @@ -3,7 +3,7 @@ - + Frigate diff --git a/web/src/components/mobile/MobilePage.tsx b/web/src/components/mobile/MobilePage.tsx index ee56468cb2..b445a9f036 100644 --- a/web/src/components/mobile/MobilePage.tsx +++ b/web/src/components/mobile/MobilePage.tsx @@ -146,9 +146,10 @@ export function MobilePageContent({ {navItems.map((item) => ( diff --git a/web/src/components/ui/drawer.tsx b/web/src/components/ui/drawer.tsx index 220708e7e2..af73e93e9d 100644 --- a/web/src/components/ui/drawer.tsx +++ b/web/src/components/ui/drawer.tsx @@ -2,8 +2,6 @@ import * as React from "react"; import { Drawer as DrawerPrimitive } from "vaul"; import { cn } from "@/lib/utils"; -import { isPWA } from "@/utils/isPWA"; -import { isIOS } from "react-device-detect"; const Drawer = ({ shouldScaleBackground = true, @@ -43,10 +41,9 @@ const DrawerContent = React.forwardRef<