From 41f7dfeeedd8c5161d7f4327f80ff394ad949cb0 Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Fri, 7 Aug 2026 11:04:12 +0300 Subject: [PATCH] Tweak MatchCard styles --- app/features/scanner/components/MatchCard.tsx | 32 ++++++++++--------- app/features/scanner/components/styles.css | 10 ++++++ 2 files changed, 27 insertions(+), 15 deletions(-) diff --git a/app/features/scanner/components/MatchCard.tsx b/app/features/scanner/components/MatchCard.tsx index 1d41b7b42..a794ab6a2 100644 --- a/app/features/scanner/components/MatchCard.tsx +++ b/app/features/scanner/components/MatchCard.tsx @@ -87,8 +87,11 @@ export function MatchCard({ ) : null}
-
- {stageLabel(match.stage) ?? "Unknown stage"} +
+
+ {stageLabel(match.stage) ?? "Unknown stage"} +
+
{meta ?
{meta}
: null} @@ -102,25 +105,24 @@ export function MatchCard({ ) : ( )} - {onSend && send?.state !== "sent" && send?.state !== "sending" ? ( ) : null} + {children ? ( + } + className={clsx("match-expand", { expanded })} + aria-expanded={expanded} + aria-label={expanded ? "Hide events" : "Show events"} + onPress={() => setExpanded(!expanded)} + /> + ) : null}
- {children ? ( - } - className={clsx("match-expand", { expanded })} - aria-expanded={expanded} - aria-label={expanded ? "Hide events" : "Show events"} - onPress={() => setExpanded(!expanded)} - /> - ) : null}
{send?.state === "failed" && send.error ? (
{send.error}
diff --git a/app/features/scanner/components/styles.css b/app/features/scanner/components/styles.css index aa9686062..e6b3595a7 100644 --- a/app/features/scanner/components/styles.css +++ b/app/features/scanner/components/styles.css @@ -809,6 +809,13 @@ app/styles/vars.css (the emberz copies of those tokens were dropped). min-width: 150px; } +.scanner-app .match-title { + display: flex; + align-items: center; + flex-wrap: wrap; + gap: var(--s-1) var(--s-2); +} + .scanner-app .match-stage { font-size: var(--font-sm); font-weight: var(--weight-extra); @@ -834,6 +841,7 @@ app/styles/vars.css (the emberz copies of those tokens were dropped). } & img.weapon-icon { + flex-shrink: 0; width: 32px; height: 32px; border-radius: var(--radius-full); @@ -853,6 +861,7 @@ app/styles/vars.css (the emberz copies of those tokens were dropped). align-items: flex-end; gap: var(--s-1-5); margin-inline-start: auto; + align-self: stretch; flex-shrink: 0; } @@ -943,6 +952,7 @@ app/styles/vars.css (the emberz copies of those tokens were dropped). /* undo the scanner-wide solid button look for the banner icon button */ .scanner-app button.match-expand { flex-shrink: 0; + margin-block-start: auto; width: 28px; height: 28px; padding: 0;