Keep the goal banner for three minutes of play; cover the large card

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
MichaelandClaude Fable 5.2 committed 2026-11-14 22:13:29 +01:00
1 parent 5b9a9109f1
commit 6a8d4084a5
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -261,3 +261,4 @@ body.calm .live-moment.fresh {animation:none;}
.live-moment {height:284dp;}
.live-game.solo .live-moment {height:340dp;}
.live-game.quad .live-moment {height:150dp;}
.live-game.solo .live-moment {top:92dp;height:372dp;}
+1 -1
View File
@@ -334,7 +334,7 @@ std::string App::live_card(const Json &match, const Json &frame, const std::stri
const auto &events = frame.at("events");
for (size_t at = events.size(); at-- > 0;) {
const auto &event = events[at];
if (event.at("minute").get<int>() < minute - 1) break;
if (event.at("minute").get<int>() < minute - 3) break; // long enough to be read at any speed
if (event.at("match_id") != match.at("id")) continue;
if (event.value("kind", std::string()) == "goal") goal = &event;
break;