diff --git a/client/src/components/game/GamePage.tsx b/client/src/components/game/GamePage.tsx index e9ff4df..9e1970e 100644 --- a/client/src/components/game/GamePage.tsx +++ b/client/src/components/game/GamePage.tsx @@ -106,7 +106,7 @@ export default function GamePage({ initialLobby }: { initialLobby: Game }) { useEffect(() => { const activeMoveEl = document.getElementById("activeNavMove"); if (!activeMoveEl) return; - activeMoveEl.scrollIntoView(); + activeMoveEl.scrollIntoView({ inline: "nearest", block: "nearest" }); }); useEffect(() => {