Center post-match status and use singular for one recorded game (by Codex)

This commit is contained in:
Codex authored and Codex committed 2026-10-27 09:48:47 +01:00
1 parent 5807db67bf
commit 28f51dabbc
2 files changed
+4 -3

No files matched your search

+3 -2
View File
@@ -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;}
+1 -1
View File
@@ -370,7 +370,7 @@ std::string App::render_postmatch() {
const int games = total.at("games");
body +=
"</div><p>" +
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<int>()) / games)
: "—") +
" Tore pro Partie") +