fix(data): mobile breakpoint for nav
This commit is contained in:
parent
621796d8ce
commit
f8b357b267
2 changed files with 2 additions and 2 deletions
|
|
@ -3506,7 +3506,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 75rem) {
|
@media (min-width: 90rem) {
|
||||||
[data-page="stats"] [data-slot="header-bar"] {
|
[data-page="stats"] [data-slot="header-bar"] {
|
||||||
gap: 32px;
|
gap: 32px;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,7 @@ export function Header(props: { githubStars: string; links?: readonly HeaderLink
|
||||||
|
|
||||||
createEffect(() => {
|
createEffect(() => {
|
||||||
if (typeof window === "undefined") return
|
if (typeof window === "undefined") return
|
||||||
const media = window.matchMedia("(max-width: 74.999rem)")
|
const media = window.matchMedia("(max-width: 89.999rem)")
|
||||||
const update = () => setMenuViewport(media.matches)
|
const update = () => setMenuViewport(media.matches)
|
||||||
update()
|
update()
|
||||||
media.addEventListener("change", update)
|
media.addEventListener("change", update)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue