From 5b8eb9691f2912cd4e7c3b10ea8763e110b44ef4 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Mon, 29 Apr 2024 06:37:04 -0600 Subject: [PATCH] Make bottom bar items easier to tap --- web/src/components/menu/AccountSettings.tsx | 7 +++++-- web/src/components/menu/GeneralSettings.tsx | 4 ++-- web/src/components/navigation/Bottombar.tsx | 17 +++++++++++------ 3 files changed, 18 insertions(+), 10 deletions(-) diff --git a/web/src/components/menu/AccountSettings.tsx b/web/src/components/menu/AccountSettings.tsx index afa63ae4c..72d05e81f 100644 --- a/web/src/components/menu/AccountSettings.tsx +++ b/web/src/components/menu/AccountSettings.tsx @@ -6,12 +6,15 @@ import { import { isDesktop } from "react-device-detect"; import { VscAccount } from "react-icons/vsc"; -export default function AccountSettings() { +type AccountSettingsProps = { + className?: string; +}; +export default function AccountSettings({ className }: AccountSettingsProps) { return (
diff --git a/web/src/components/menu/GeneralSettings.tsx b/web/src/components/menu/GeneralSettings.tsx index aed5f2173..744fc4246 100644 --- a/web/src/components/menu/GeneralSettings.tsx +++ b/web/src/components/menu/GeneralSettings.tsx @@ -66,10 +66,10 @@ import { DialogTrigger, } from "../ui/dialog"; -type GeneralSettings = { +type GeneralSettingsProps = { className?: string; }; -export default function GeneralSettings({ className }: GeneralSettings) { +export default function GeneralSettings({ className }: GeneralSettingsProps) { const { theme, colorScheme, setTheme, setColorScheme } = useTheme(); const [restartDialogOpen, setRestartDialogOpen] = useState(false); const [restartingSheetOpen, setRestartingSheetOpen] = useState(false); diff --git a/web/src/components/navigation/Bottombar.tsx b/web/src/components/navigation/Bottombar.tsx index 38086892e..6df529ccf 100644 --- a/web/src/components/navigation/Bottombar.tsx +++ b/web/src/components/navigation/Bottombar.tsx @@ -20,16 +20,19 @@ function Bottombar() { return (
{navItems.map((item) => ( - + ))} - - - + + +
); } -function StatusAlertNav() { +type StatusAlertNavProps = { + className?: string; +}; +function StatusAlertNav({ className }: StatusAlertNavProps) { const { data: initialStats } = useSWR("stats", { revalidateOnFocus: false, }); @@ -64,7 +67,9 @@ function StatusAlertNav() { - +
{Object.entries(messages).map(([key, messageArray]) => (