fix bottom navbar overflows content
This commit is contained in:
parent
7821e39345
commit
df851197a3
@ -4,7 +4,7 @@ import { type PropsWithChildren } from 'react';
|
||||
export default async function Layout({ children }: Readonly<PropsWithChildren>) {
|
||||
return (
|
||||
<>
|
||||
<main>{children}</main>
|
||||
<main className="grow">{children}</main>
|
||||
<BottomNav />
|
||||
</>
|
||||
);
|
||||
|
||||
@ -16,7 +16,7 @@ export default async function RootLayout({ children }: Readonly<PropsWithChildre
|
||||
|
||||
return (
|
||||
<html lang={locale}>
|
||||
<body className="bg-app-background">
|
||||
<body className="flex min-h-screen flex-col bg-app-background">
|
||||
<I18nProvider>
|
||||
<ThemeProvider>
|
||||
<AuthProvider>
|
||||
|
||||
@ -10,7 +10,7 @@ export function BottomNav() {
|
||||
if (!isFirstLevel) return null;
|
||||
|
||||
return (
|
||||
<nav className="fixed inset-x-0 bottom-0 border-t border-border bg-background">
|
||||
<nav className="sticky inset-x-0 bottom-0 border-t border-border bg-background">
|
||||
<div className="grid grid-cols-5">
|
||||
<NavButton href="/dashboard" icon={<Newspaper />} label="Главное" />
|
||||
<NavButton href="/records" icon={<BookOpen />} label="Записи" />
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user