From 28f51dabbcea6bb41f5721b75065f1629e083c78 Mon Sep 17 00:00:00 2001 From: Codex Date: Tue, 27 Oct 2026 09:47:20 +0100 Subject: [PATCH] Center post-match status and use singular for one recorded game (by Codex) --- assets/modern/postmatch.rcss | 5 +++-- src/modern/ui/postmatch_screens.inc | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/assets/modern/postmatch.rcss b/assets/modern/postmatch.rcss index 0d87654..21c136e 100644 --- a/assets/modern/postmatch.rcss +++ b/assets/modern/postmatch.rcss @@ -16,10 +16,11 @@ .postmatch-tabs button {flex:1;min-width:0;height:84dp;border:0;border-radius:16dp;padding:22dp 12dp;white-space:nowrap;color:var(--muted);} .postmatch-tabs button.selected {color:var(--text);} .postmatch-panel {position:relative;min-height:0;flex:1;display:flex;flex-direction:column;} -.postmatch-actions {display:flex;align-items:center;justify-content:space-between;gap:32dp;min-height:84dp;flex-shrink:0;} +.postmatch-actions {position:relative;display:flex;align-items:center;justify-content:flex-start;gap:32dp;min-height:84dp;flex-shrink:0;} .postmatch-actions button {min-width:330dp;height:84dp;font-size:32dp;border:2dp var(--border);background-color:var(--soft);} .postmatch-actions button:last-child {background-color:var(--selected);border-color:var(--accent);} -.postmatch-status {flex:1;font-size:26dp;text-align:center;color:var(--muted);} +.postmatch-status {position:absolute;left:30%;top:0;width:40%;height:84dp;line-height:84dp;font-size:26dp;text-align:center;color:var(--muted);pointer-events:none;} +#postmatch-ticker {margin-left:auto;} .postmatch-team {display:flex;align-items:center;gap:24dp;flex:1;min-width:0;} .postmatch-team-name {display:block;min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;} .postmatch-team.home .postmatch-team-name {text-align:right;} diff --git a/src/modern/ui/postmatch_screens.inc b/src/modern/ui/postmatch_screens.inc index 7a42f19..9b2ac21 100644 --- a/src/modern/ui/postmatch_screens.inc +++ b/src/modern/ui/postmatch_screens.inc @@ -370,7 +370,7 @@ std::string App::render_postmatch() { const int games = total.at("games"); body += "

" + - live_text(std::to_string(games) + " aufgezeichnete Partien · " + + live_text(std::to_string(games) + (games == 1 ? " aufgezeichnete Partie · " : " aufgezeichnete Partien · ") + (games ? scalar(double(total.at("goals").get()) / games) : "—") + " Tore pro Partie") +