Skip to content

Commit

Permalink
refactor: min height / antialiased
Browse files Browse the repository at this point in the history
  • Loading branch information
rharkor committed Apr 22, 2024
1 parent 3f6e55c commit aa1822b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/app/src/app/[lang]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default async function RootLayout({

return (
<html lang={params.lang}>
<body className={cn("antialiaseds min-h-screen bg-background font-sans", fontSans.variable)}>
<body className={cn("h-dvh min-h-dvh bg-background font-sans antialiased", fontSans.variable)}>
<RootProviders lang={params.lang as Locale}>{children}</RootProviders>
</body>
</html>
Expand Down
6 changes: 5 additions & 1 deletion apps/app/src/app/[lang]/ui-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,9 @@ import { NextUIProvider } from "@nextui-org/react"
export default function UIProvider({ children }: { children: React.ReactNode }) {
const router = useRouter()

return <NextUIProvider navigate={router.push}>{children}</NextUIProvider>
return (
<NextUIProvider navigate={router.push} className="flex min-h-full flex-col">
{children}
</NextUIProvider>
)
}

0 comments on commit aa1822b

Please sign in to comment.