mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: simplified
This commit is contained in:
1 parent
8f54b8a576
commit
ec547af49e
2 files changed
+5
-18
No files matched your search
@@ -58,6 +58,7 @@ export const navbarExpander = styleVariants({
|
|||||||
navbarExpanderBase,
|
navbarExpanderBase,
|
||||||
{
|
{
|
||||||
maxHeight: '100vh',
|
maxHeight: '100vh',
|
||||||
|
overscrollBehavior: 'contain',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -45,13 +45,9 @@ export default function Navbar() {
|
|||||||
<Flex className={styles.navbar}>
|
<Flex className={styles.navbar}>
|
||||||
<Flex
|
<Flex
|
||||||
className={styles.navbarExpander[`${showHamburgerMenu}`]}
|
className={styles.navbarExpander[`${showHamburgerMenu}`]}
|
||||||
align="start"
|
|
||||||
onClick={() => setShowHamburgerMenu((state) => !state)}
|
onClick={() => setShowHamburgerMenu((state) => !state)}
|
||||||
>
|
|
||||||
<Flex
|
|
||||||
className={styles.navbarContent}
|
|
||||||
direction="column"
|
direction="column"
|
||||||
onClick={(event) => event.stopPropagation()}
|
gap="2"
|
||||||
>
|
>
|
||||||
<Flex justify="center">
|
<Flex justify="center">
|
||||||
<Flex flexGrow="1" maxWidth="1024px" p="3" align="center">
|
<Flex flexGrow="1" maxWidth="1024px" p="3" align="center">
|
||||||
@@ -93,9 +89,7 @@ export default function Navbar() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{index > 0 && (
|
{index > 0 && <Separator orientation="vertical" size="1" />}
|
||||||
<Separator orientation="vertical" size="1" />
|
|
||||||
)}
|
|
||||||
<Link
|
<Link
|
||||||
onClick={() => setShowHamburgerMenu(false)}
|
onClick={() => setShowHamburgerMenu(false)}
|
||||||
color="gray"
|
color="gray"
|
||||||
@@ -228,8 +222,7 @@ export default function Navbar() {
|
|||||||
<Dialog.Root>
|
<Dialog.Root>
|
||||||
<Dialog.Trigger>
|
<Dialog.Trigger>
|
||||||
<Button color="red">
|
<Button color="red">
|
||||||
<WargamingIcon width={15} height={15} />{' '}
|
<WargamingIcon width={15} height={15} /> Wargaming
|
||||||
Wargaming
|
|
||||||
</Button>
|
</Button>
|
||||||
</Dialog.Trigger>
|
</Dialog.Trigger>
|
||||||
|
|
||||||
@@ -250,11 +243,7 @@ export default function Navbar() {
|
|||||||
}
|
}
|
||||||
>
|
>
|
||||||
<Button color="red">
|
<Button color="red">
|
||||||
{
|
{strings.common.regions.normal[region]}
|
||||||
strings.common.regions.normal[
|
|
||||||
region
|
|
||||||
]
|
|
||||||
}
|
|
||||||
</Button>
|
</Button>
|
||||||
</Link>
|
</Link>
|
||||||
</Dialog.Close>
|
</Dialog.Close>
|
||||||
@@ -273,7 +262,6 @@ export default function Navbar() {
|
|||||||
</Flex>
|
</Flex>
|
||||||
|
|
||||||
<ScrollArea>
|
<ScrollArea>
|
||||||
<Flex justify="center">
|
|
||||||
<Grid
|
<Grid
|
||||||
columns="repeat(auto-fill, minmax(192px, 1fr))"
|
columns="repeat(auto-fill, minmax(192px, 1fr))"
|
||||||
flow="dense"
|
flow="dense"
|
||||||
@@ -331,10 +319,8 @@ export default function Navbar() {
|
|||||||
</Flex>
|
</Flex>
|
||||||
))}
|
))}
|
||||||
</Grid>
|
</Grid>
|
||||||
</Flex>
|
|
||||||
</ScrollArea>
|
</ScrollArea>
|
||||||
</Flex>
|
</Flex>
|
||||||
</Flex>
|
</Flex>
|
||||||
</Flex>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user