From dd0dee620ad982e573d2765457aa1979ab4972c8 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Thu, 16 May 2024 11:51:57 -0500 Subject: [PATCH] spacing on mobile landscape (#11397) --- web/src/App.tsx | 8 +++++++- web/src/components/Wrapper.tsx | 2 +- web/src/components/navigation/Bottombar.tsx | 20 ++++++++++++++++---- web/src/pages/Exports.tsx | 2 +- web/src/views/events/EventView.tsx | 2 +- web/src/views/live/LiveDashboardView.tsx | 5 ++++- 6 files changed, 30 insertions(+), 9 deletions(-) diff --git a/web/src/App.tsx b/web/src/App.tsx index eb81bc8120..dfe3443adc 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -8,6 +8,7 @@ import Statusbar from "./components/Statusbar"; import Bottombar from "./components/navigation/Bottombar"; import { Suspense, lazy } from "react"; import { Redirect } from "./components/navigation/Redirect"; +import { cn } from "./lib/utils"; const Live = lazy(() => import("@/pages/Live")); const Events = lazy(() => import("@/pages/Events")); @@ -31,7 +32,12 @@ function App() { {isMobile && }
diff --git a/web/src/components/Wrapper.tsx b/web/src/components/Wrapper.tsx index 43c60cd607..4b1d38940e 100644 --- a/web/src/components/Wrapper.tsx +++ b/web/src/components/Wrapper.tsx @@ -5,7 +5,7 @@ type TWrapperProps = { }; const Wrapper = ({ children }: TWrapperProps) => { - return
{children}
; + return
{children}
; }; export default Wrapper; diff --git a/web/src/components/navigation/Bottombar.tsx b/web/src/components/navigation/Bottombar.tsx index dfa536f458..b61b92c92d 100644 --- a/web/src/components/navigation/Bottombar.tsx +++ b/web/src/components/navigation/Bottombar.tsx @@ -15,12 +15,18 @@ import { } from "@/context/statusbar-provider"; import { Link } from "react-router-dom"; import { cn } from "@/lib/utils"; +import { isMobile } from "react-device-detect"; function Bottombar() { const navItems = useNavigation("secondary"); return ( -
+
{navItems.map((item) => ( ))} @@ -72,8 +78,10 @@ function StatusAlertNav({ className }: StatusAlertNavProps) { return ( - - + +
+ +
{message}; + return ( + + {message} + + ); } else { return message; } diff --git a/web/src/pages/Exports.tsx b/web/src/pages/Exports.tsx index 4c58f0b09c..c955041c0c 100644 --- a/web/src/pages/Exports.tsx +++ b/web/src/pages/Exports.tsx @@ -77,7 +77,7 @@ function Exports() { const [selected, setSelected] = useState(); return ( -
+
setDeleteClip(undefined)} diff --git a/web/src/views/events/EventView.tsx b/web/src/views/events/EventView.tsx index bdcbac88b5..ad71ed30ec 100644 --- a/web/src/views/events/EventView.tsx +++ b/web/src/views/events/EventView.tsx @@ -252,7 +252,7 @@ export default function EventView({ } return ( -
+
{isMobile && ( diff --git a/web/src/views/live/LiveDashboardView.tsx b/web/src/views/live/LiveDashboardView.tsx index 3f176444f0..a2f3717007 100644 --- a/web/src/views/live/LiveDashboardView.tsx +++ b/web/src/views/live/LiveDashboardView.tsx @@ -155,7 +155,10 @@ export default function LiveDashboardView({ const birdseyeConfig = useMemo(() => config?.birdseye, [config]); return ( -
+
{isMobile && (