Files
super-auto-pets-board-game/web/src/components
Greyson Parrelli a2024229ff Hold the battle arena at a fixed height.
The play area grew and shrank as cards entered and left play. Two slots
were sized independently of the cards that fill them: the pet zone
reserved 150px for a 162px battle card, and the empty-deck placeholder
kept its desktop 84x116 on phones where the face-down card is 56x78. So
each faint/reveal moved the arena 12px per side on desktop, and a deck
running dry moved it 38px per side on a phone.

Every arena slot now derives from one set of --unit-*/--deck-* metrics on
.battle, and holds that size whether or not a card occupies it. Measured
across a battle's states (no pets, both revealed, one fainted, fans of
apples, decks dry), the arena height spread goes from 24px desktop /
76px phone to 0.

Also hide the arena's horizontal scrollbar: a wide apple fan made it
appear and vanish mid-battle, and with a content-driven height that alone
jumped the arena by the scrollbar's thickness. Touch, trackpad and
shift+wheel still scroll it.
2026-07-27 16:24:52 -04:00
..
2026-07-27 00:03:23 -04:00
2026-07-27 00:03:23 -04:00
2026-07-24 09:07:54 -04:00
2026-07-25 00:37:44 -04:00
2026-07-22 23:07:29 -04:00
2026-07-25 23:13:40 -04:00
2026-07-23 22:01:54 -04:00
2026-07-27 16:06:23 -04:00