From e3b82f2181d2723b8b35325c48b8c405c46da540 Mon Sep 17 00:00:00 2001 From: Guangcong Luo Date: Sat, 4 Nov 2023 23:16:37 +0000 Subject: [PATCH] Restore downloaded replay CSS PR #2162 removed the CSS on downloaded replays without any explanation. I think it was intended to save space and/or make things bigger? But it came with a number of bugs. - downloaded replay logs are much wider than intended - downloaded replays now have a "battle options" button that does nothing - downloaded replays have some unstyled text in e.g. popups - MOST IMPORTANTLY: downloaded replays are no longer styled when you don't have an internet connection Anyway, reverting that change fixes all these issues, and doesn't seem to cause any new ones? This is a temporary measure while waiting for Karthik to explain why the CSS removal was done in the first place. Refs #2165 --- src/battle-log.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/battle-log.ts b/src/battle-log.ts index 4062ad8f52..006670d805 100644 --- a/src/battle-log.ts +++ b/src/battle-log.ts @@ -1165,6 +1165,10 @@ export class BattleLog { buf += '\n'; buf += '\n'; buf += `${BattleLog.escapeHTML(battle.tier)} replay: ${BattleLog.escapeHTML(battle.p1.name)} vs. ${BattleLog.escapeHTML(battle.p2.name)}\n`; + // This \n'; buf += '
\n'; buf += '\n'; buf += '
\n';