diff --git a/src/app/(player)/layout.tsx b/src/app/(player)/layout.tsx index 5fd7b57..e9b6a87 100644 --- a/src/app/(player)/layout.tsx +++ b/src/app/(player)/layout.tsx @@ -1,7 +1,9 @@ +import { PlayerMobileViewport } from "@/components/layout/player-mobile-viewport"; + export default function PlayerRootLayout({ children, }: Readonly<{ children: React.ReactNode; }>) { - return children; + return {children}; } diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 4c55015..cd009bc 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -20,6 +20,11 @@ export const metadata: Metadata = { description: "Lottery player", }; +export const viewport = { + width: "device-width", + initialScale: 1, +}; + export default function RootLayout({ children, }: Readonly<{ diff --git a/src/components/layout/player-app-shell.tsx b/src/components/layout/player-app-shell.tsx index 47f81fe..0d7b427 100644 --- a/src/components/layout/player-app-shell.tsx +++ b/src/components/layout/player-app-shell.tsx @@ -20,7 +20,7 @@ export function PlayerAppShell({ children }: PlayerAppShellProps): ReactNode { return (
-
+
{children}
diff --git a/src/components/layout/player-bottom-nav.tsx b/src/components/layout/player-bottom-nav.tsx index 12adfa5..3fd7fa5 100644 --- a/src/components/layout/player-bottom-nav.tsx +++ b/src/components/layout/player-bottom-nav.tsx @@ -6,6 +6,7 @@ import { usePathname } from "next/navigation"; import { BarChart3, ClipboardList, Home, Wallet } from "lucide-react"; import { useTranslation } from "react-i18next"; +import { playerViewportFixedBarClass } from "@/lib/player-viewport"; import { cn } from "@/lib/utils"; const tabs = [ @@ -48,10 +49,13 @@ export function PlayerBottomNav() { return (