💄 Better app bar

This commit is contained in:
LittleSheep 2025-01-02 23:01:27 +08:00
parent dc16fbfc69
commit 799fa2e475
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ export function CapAppBar() {
return (
<Box sx={{ flexGrow: 1 }}>
<AppBar position="static" elevation={0} color={'transparent'}>
<AppBar position="absolute" elevation={0} color={'transparent'}>
<Toolbar>
<IconButton size="large" edge="start" color="inherit" aria-label="menu" sx={{ mr: 2 }}>
<MenuIcon />

View File

@ -43,7 +43,7 @@ export default function App({ Component, pageProps }: AppProps) {
<CssBaseline />
<CapAppBar />
<Box sx={{ height: 'calc(100vh - 64px)' }}>
<Box sx={{ height: '100vh' }}>
<Component {...pageProps} />
</Box>
</ThemeProvider>