scrolling fixes

This commit is contained in:
2026-07-02 17:51:59 -05:00
parent d6a026287a
commit 8c639a83a9
2 changed files with 21 additions and 8 deletions

View File

@@ -60,6 +60,11 @@ export default function Home({ params }: { params: Promise<{ locale: string }> }
setTab("groupfixtures");
}, []);
// Tab-Wechsel: nach ganz oben scrollen
useEffect(() => {
window.scrollTo({ top: 0, behavior: "auto" });
}, [tab]);
const anyLive = data?.matches.some(
(m) => m.status === "LIVE" || m.status === "IN_PLAY" || m.status === "PAUSED",
);