Fix the Nethack page at small screen sizes

This commit is contained in:
Eryn Wells 2023-04-08 15:12:43 -07:00
parent 59bb6d28d0
commit 7f48047610
2 changed files with 3 additions and 2 deletions

View file

@ -723,7 +723,8 @@ new p5(p => {
const gridBounds = Rect.fromCoordinates(
0, 0,
Math.ceil(canvasWidth / CELL_WIDTH) - 1, Math.ceil(canvasHeight / CELL_HEIGHT) - 1
Math.max(80, Math.ceil(canvasWidth / CELL_WIDTH) - 1),
Math.max(24, Math.ceil(canvasHeight / CELL_HEIGHT) - 1)
);
console.log(`Generating grid with size ${gridBounds.size.width} x ${gridBounds.size.height}`);

View file

@ -32,7 +32,7 @@
}
main {
background: black;
background: rgba(var(--black), 0.6);
}
#dungeon-background {