From 44ef5cf5151e947b09ca93bb0cde3973c5760d38 Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi Date: Thu, 16 Jul 2026 07:58:17 -0400 Subject: [PATCH] fix(v2): render match-rom covers at full width in Safari The manual "Match ROM" dialog wrapped each GameCard in a block-level cell, so the card's aspect-ratio-derived width resolved against a shrink-to-fit containing block. WebKit collapses that circular case to a near-zero width, rendering covers as thin slivers (Chromium is fine). Lay the cell out as a flex container so the card sizes via flex intrinsic sizing, the same path the gallery row already uses. Fixes #3761 Generated-By: PostHog Code Task-Id: 85199a96-11de-4403-a30e-e533cf9a8e48 --- frontend/src/v2/components/MatchRom/MatchRomBodyGrid.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/src/v2/components/MatchRom/MatchRomBodyGrid.vue b/frontend/src/v2/components/MatchRom/MatchRomBodyGrid.vue index 7dbe3e1cc..6cf496736 100644 --- a/frontend/src/v2/components/MatchRom/MatchRomBodyGrid.vue +++ b/frontend/src/v2/components/MatchRom/MatchRomBodyGrid.vue @@ -301,6 +301,12 @@ watch( /* Shrink-wrap the card's natural width and never shrink below it (a fixed -height card shrunk on the cross axis would crop its cover). */ flex: 0 0 auto; + /* Lay the card out as a flex item (not a block child). GameCard derives its + width from a fixed height via the cover's `aspect-ratio`; as a block child + of a shrink-to-fit cell that width resolution is circular, and WebKit + (Safari) collapses it to a thin sliver. Flex intrinsic sizing resolves it + correctly, the same path the gallery row already relies on. */ + display: flex; /* …but never wider than the grid: a wide cover (landscape provider art, or a card wider than a narrow phone) draws its width from the cover aspect and is otherwise unbounded, so it would spill past the right edge. Cap it