From 44016129b5a1d278a04846844df8a3fd39c51579 Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi Date: Sun, 21 Jun 2026 21:09:30 -0400 Subject: [PATCH] feat(v2): list-view covers respect natural aspect; scale placeholder title MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Gallery list view: drop the `fixed` opt-out on its GameCard so the row thumbnail renders at the cover's natural aspect (fixed height, natural width) like everywhere else. Removes the now-unused `fixed` prop / class / CSS branch from GameCard. - CoverPlaceholder: the title now scales with the cover box (container query units, clamp(8px, 8cqmin, 18px), em padding) instead of a fixed 12px — readable on a tiny list thumb, proportionate on the detail hero. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../src/v2/components/Gallery/GameListRow.vue | 1 - .../src/v2/components/GameCard/GameCard.vue | 21 +++++++------------ .../v2/components/shared/CoverPlaceholder.vue | 7 +++++-- 3 files changed, 12 insertions(+), 17 deletions(-) diff --git a/frontend/src/v2/components/Gallery/GameListRow.vue b/frontend/src/v2/components/Gallery/GameListRow.vue index e44894e63..596f8b7b4 100644 --- a/frontend/src/v2/components/Gallery/GameListRow.vue +++ b/frontend/src/v2/components/Gallery/GameListRow.vue @@ -317,7 +317,6 @@ onBeforeUnmount(() => { align-items: center; justify-content: center; overflow: hidden; + /* Query container so the title can scale with the cover box's size + (tiny list thumb → big detail hero) instead of a fixed px. */ + container-type: size; } .cover-ph__art { position: absolute; @@ -62,9 +65,9 @@ const artUrl = computed(() => position: relative; z-index: 1; max-width: 100%; - padding: 8px 10px; + font-size: clamp(8px, 8cqmin, 18px); + padding: 0.5em 0.7em; text-align: center; - font-size: 12px; font-weight: var(--r-font-weight-semibold); line-height: 1.35; color: var(--r-color-overlay-fg);