Skip to content

Commit

Permalink
fix: 修复footer显示不全的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
GaoNeng-wWw committed Aug 16, 2024
1 parent 7e02274 commit d2eb39a
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions app/(root)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,16 @@ export default function RootLayout({ children }: { children: any }) {
<body>
<MantineProvider theme={theme}>
<Notifications position="top-right" />
<AppShell
style={{
scrollSnapType: 'y mandatory',
overflowY: 'scroll',
height: '100vh',
}}
header={{ height: 60 }}
footer={{ height: 80 }}
>
<AppShell header={{ height: 60 }}>
<AppShell.Header>
<Header />
</AppShell.Header>

<AppShell.Main>
<AppShell.Main pb={120}>
{children}
</AppShell.Main>

<AppShell.Footer>
<AppShell.Footer mah={120}>
<Footer />
</AppShell.Footer>
</AppShell>
Expand Down

0 comments on commit d2eb39a

Please sign in to comment.