Add style to hide nav links on mobile
This commit is contained in:
parent
63b6392b13
commit
dc8aae170b
@ -36,7 +36,6 @@ function getAvatarUrl(userData: { [k: string]: any }): string {
|
|||||||
|
|
||||||
export default function (props: {
|
export default function (props: {
|
||||||
avatar?: string;
|
avatar?: string;
|
||||||
discriminator?: string;
|
|
||||||
email?: string;
|
email?: string;
|
||||||
hide?: boolean;
|
hide?: boolean;
|
||||||
id?: string;
|
id?: string;
|
||||||
@ -63,7 +62,7 @@ export default function (props: {
|
|||||||
1 << 9,
|
1 << 9,
|
||||||
1 << 10,
|
1 << 10,
|
||||||
1 << 11,
|
1 << 11,
|
||||||
].find((int) => permissions & int)
|
].find((int) => permissions & int),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -76,6 +75,13 @@ export default function (props: {
|
|||||||
}
|
}
|
||||||
`}
|
`}
|
||||||
</style>
|
</style>
|
||||||
|
<style media="(max-width: 1280px)">
|
||||||
|
{`
|
||||||
|
#nav-links {
|
||||||
|
display: none
|
||||||
|
}
|
||||||
|
`}
|
||||||
|
</style>
|
||||||
<Box as="section" pb={{ base: "6" }}>
|
<Box as="section" pb={{ base: "6" }}>
|
||||||
<Box as="nav" boxSizing="unset">
|
<Box as="nav" boxSizing="unset">
|
||||||
<Container display="grid" maxW="container.xl" py={{ base: "6" }}>
|
<Container display="grid" maxW="container.xl" py={{ base: "6" }}>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user