mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-10 02:58:29 +00:00
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"] {
|
||||
gap: 32px;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ export function Header(props: { githubStars: string; links?: readonly HeaderLink
|
|||
|
||||
createEffect(() => {
|
||||
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)
|
||||
update()
|
||||
media.addEventListener("change", update)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue