Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add style to hide nav links on mobile
  • Loading branch information
regalijan committed Oct 19, 2023
1 parent 63b6392 commit dc8aae1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions components/Navigation.tsx
Expand Up @@ -36,7 +36,6 @@ function getAvatarUrl(userData: { [k: string]: any }): string {

export default function (props: {
avatar?: string;
discriminator?: string;
email?: string;
hide?: boolean;
id?: string;
Expand All @@ -63,7 +62,7 @@ export default function (props: {
1 << 9,
1 << 10,
1 << 11,
].find((int) => permissions & int)
].find((int) => permissions & int),
);
}

Expand All @@ -76,6 +75,13 @@ export default function (props: {
}
`}
</style>
<style media="(max-width: 1280px)">
{`
#nav-links {
display: none
}
`}
</style>
<Box as="section" pb={{ base: "6" }}>
<Box as="nav" boxSizing="unset">
<Container display="grid" maxW="container.xl" py={{ base: "6" }}>
Expand Down

0 comments on commit dc8aae1

Please sign in to comment.