From 484be7fbd4ea59b25a6f5591ce3366da6586dc26 Mon Sep 17 00:00:00 2001 From: code002lover Date: Fri, 5 Dec 2025 15:03:26 +0100 Subject: [PATCH] fix: Add `block: "start"` to `scrollIntoView` options to ensure element aligns to the top of the viewport. --- frontend/src/GameList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/GameList.tsx b/frontend/src/GameList.tsx index 2e17f9a..3121ac7 100644 --- a/frontend/src/GameList.tsx +++ b/frontend/src/GameList.tsx @@ -60,7 +60,7 @@ export function GameList() { if (location.hash === "#existing-games") { const el = document.getElementById("existing-games"); if (el) { - el.scrollIntoView({ behavior: "smooth" }); + el.scrollIntoView({ behavior: "smooth", block: "start" }); } } }, [location]);