Optimize mobile UI with scaling and reduced info

Option 2: Scale battle grid to 70% on mobile
Option 4: Reduce board-info padding and font size, hide next/hold previews
This commit is contained in:
2026-03-20 09:52:26 -07:00
parent 94b524bcd7
commit e5a5e0eda9
+15 -1
View File
@@ -513,8 +513,22 @@ button:active {
display: flex;
}
/* Option 2: Scale down the entire battle grid for mobile */
#battle-grid {
height: 60vh;
height: 50vh;
transform: scale(0.7);
transform-origin: center center;
margin-bottom: -60px; /* Compensate for scale to prevent overflow */
}
/* Option 4: Reduce board info height and hide previews on mobile */
.player-board .board-info {
padding: 5px 2px;
font-size: 0.45rem;
}
.player-board .board-info:has(canvas) {
display: none; /* Hide next/hold previews on mobile to save space */
}
.player-board.spectator {