fix: user menu position in nav

This commit is contained in:
Nicola Zambello 2023-02-23 12:18:12 +01:00
parent 0f1da47739
commit f5499de9d9
Signed by: nzambello
GPG key ID: 56E4A92C2C1E50BA

View file

@ -291,7 +291,7 @@ function Layout({ children }: React.PropsWithChildren<{}>) {
</Navbar.Section> </Navbar.Section>
</MediaQuery> </MediaQuery>
{user && ( {user && (
<Navbar.Section mt="md"> <Navbar.Section mt="md" grow>
<NavLink <NavLink
component={Link} component={Link}
to="/" to="/"
@ -354,7 +354,7 @@ function Layout({ children }: React.PropsWithChildren<{}>) {
</Navbar.Section> </Navbar.Section>
)} )}
{user && ( {user && (
<Navbar.Section> <Navbar.Section mt="lg">
<Menu shadow="md" width={200}> <Menu shadow="md" width={200}>
<Menu.Target> <Menu.Target>
<UnstyledButton w="100%" title="Account / Logout" p="xs"> <UnstyledButton w="100%" title="Account / Logout" p="xs">