From 886523173b53a89b20434b50972ab4da8cef764c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Sun, 14 Jun 2026 20:10:55 +0200 Subject: [PATCH] fix: use grid layout for full match card so teams stay in one row on mobile Replaced flex-wrap with grid-cols-[1fr_auto_1fr] so team columns fill equally on either side of the score. Score font scales down on mobile, padding tightens, team names truncate instead of wrapping. Co-Authored-By: Claude Sonnet 4.6 --- components/match-card.tsx | 36 ++++++++++++++++++++---------------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/components/match-card.tsx b/components/match-card.tsx index 8016c2f..6d13fe3 100644 --- a/components/match-card.tsx +++ b/components/match-card.tsx @@ -74,33 +74,37 @@ export function MatchCard({ match, compact = false }: { match: Match; compact?: return ( -
+
{match.isLive &&
} -
-
- -
{match.team1.name}
+
+
+ +
+ {match.team1.name} +
-
+
{hasScore ? match.scoreP - ? `${match.scoreP[0]} – ${match.scoreP[1]}` - : `${ft![0]} – ${ft![1]}` - : '? – ?'} + ? `${match.scoreP[0]}–${match.scoreP[1]}` + : `${ft![0]}–${ft![1]}` + : '?–?'}
{match.scoreP && ( -
{ft![0]}–{ft![1]} a.e.t.
+
{ft![0]}–{ft![1]} a.e.t.
)} -
{match.round}
-
{match.date ? formatDate(match.date) : ''}
{match.scoreEt && !match.scoreP && ( -
a.e.t. {match.scoreEt[0]}–{match.scoreEt[1]}
+
a.e.t.
)} +
{match.round}
+
{match.date ? formatDate(match.date) : ''}
-
- -
{match.team2.name}
+
+ +
+ {match.team2.name} +