diff --git a/frontend/src/tools/gebietseroberung.jsx b/frontend/src/tools/gebietseroberung.jsx index 65aa478..6287adf 100644 --- a/frontend/src/tools/gebietseroberung.jsx +++ b/frontend/src/tools/gebietseroberung.jsx @@ -216,11 +216,12 @@ function GameBoard({ game, myId, onMove, toast }) { } const vw = Math.min(window.innerWidth, 600); - // Verfügbare Höhe: Viewport minus Header (~48px) minus Scoreboard (~72px) minus Status (~40px) minus Legende (~24px) minus Puffer (20px) - const availH = window.innerHeight - 204; + // Overhead: h2-Header(36) + Scoreboard(56) + MineAlert(0-52) + Banner(0-48) + Status(32) + Legende(28) + Puffer(32) = ~260px worst case + const availH = window.innerHeight - 260; const byWidth = Math.floor((vw - 32) / GRID); const byHeight = Math.floor(availH / GRID); const cellSize = Math.max(10, Math.min(byWidth, byHeight)); + const gridPx = cellSize * GRID + 19 + 6; // gap(19) + padding(6) // Zell-Rendering const renderCell = (r, c) => { @@ -278,15 +279,15 @@ function GameBoard({ game, myId, onMove, toast }) { return (