Files
romm/frontend
Sam Dornan d3833ca817 fix(frontend-v2): centre the recommendation caption under the card
The caption under a recommended game card was left-aligned while the card
title above it was centred. Centre the caption instead of left-aligning
the title, so the change stays inside the recommendation feed rather than
shifting every GameCard in the gallery, the similar-games grids and the
match-ROM picker.

Two things stood in the way of centring:

- "Because you played X" never fit the cover width, so it filled the
  caption and could not centre. It now captions the seed game on its own,
  with a play icon, the way every facet reason is captioned; the full
  sentence moves to the title tooltip, so no locale keys change.
- The ellipsis sat on the flex container, where it does nothing: an
  anonymous text run has no box to truncate, so an over-long caption was
  cut mid-word. It now lives on a real child span.

Also nudge the reason icon onto the caption's optical centre. MDI glyphs
centre on the em box, leaving them ~2px low against the text's cap height.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01427KQPf6WHJQ8feMKYp24Z
2026-09-15 02:31:40 +00:00
..
2026-05-30 20:53:52 -04:00
2026-07-26 14:14:07 -04:00