mirror of
https://github.com/rommapp/romm.git
synced 2026-12-03 10:33:22 +01:00
The grid flow-packs rows in JS from each card's real width (cardHeight * coverRatio), and rows render nowrap with flex-shrink: 0 — so an underestimated width overflows the viewport instead of wrapping. Ratios are measured on cover load, but a rom with no cover paints its placeholder at the boxart style's ratio and never measures, so the packer's hardcoded 2/3 under-reserved its width and let an extra card into the row. The packer now takes the style ratio as its fallback for any position without a measured cover, which also covers the pre-load paint of every card in a non-2/3 gallery. Fixes #3984 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>