diff --git a/web/src/App.tsx b/web/src/App.tsx index dfe3443ad..c4bdab9f2 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -9,6 +9,7 @@ import Bottombar from "./components/navigation/Bottombar"; import { Suspense, lazy } from "react"; import { Redirect } from "./components/navigation/Redirect"; import { cn } from "./lib/utils"; +import { isPWA } from "./utils/isPWA"; const Live = lazy(() => import("@/pages/Live")); const Events = lazy(() => import("@/pages/Events")); @@ -35,7 +36,7 @@ function App() { className={cn( "absolute right-0 top-0 overflow-hidden", isMobile - ? "bottom-12 left-0 md:bottom-16 landscape:bottom-14 landscape:md:bottom-16" + ? `bottom-${isPWA ? 16 : 12} left-0 md:bottom-16 landscape:bottom-14 landscape:md:bottom-16` : "bottom-8 left-[52px]", )} > diff --git a/web/src/components/navigation/Bottombar.tsx b/web/src/components/navigation/Bottombar.tsx index b61b92c92..2f73a4f9e 100644 --- a/web/src/components/navigation/Bottombar.tsx +++ b/web/src/components/navigation/Bottombar.tsx @@ -16,6 +16,7 @@ import { import { Link } from "react-router-dom"; import { cn } from "@/lib/utils"; import { isMobile } from "react-device-detect"; +import { isPWA } from "@/utils/isPWA"; function Bottombar() { const navItems = useNavigation("secondary"); @@ -23,8 +24,11 @@ function Bottombar() { return (