From 36b2dffefc2f334db67dcb920283cad6960732b2 Mon Sep 17 00:00:00 2001 From: Karthik99999 Date: Thu, 19 Oct 2023 23:38:43 -0700 Subject: [PATCH] Fix CSS on downloaded replays --- js/replay-embed.template.js | 2 ++ style/battle.css | 10 ++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/js/replay-embed.template.js b/js/replay-embed.template.js index 74ea797446..854da02c64 100644 --- a/js/replay-embed.template.js +++ b/js/replay-embed.template.js @@ -29,6 +29,8 @@ function requireScript(url) { } linkStyle('https://play.pokemonshowdown.com/style/font-awesome.css?'); +linkStyle('https://pokemonshowdown.com/theme/panels.css?'); +linkStyle('https://pokemonshowdown.com/theme/main.css?'); linkStyle('https://play.pokemonshowdown.com/style/battle.css?a7'); linkStyle('https://play.pokemonshowdown.com/style/replay.css?a7'); linkStyle('https://play.pokemonshowdown.com/style/utilichart.css?a7'); diff --git a/style/battle.css b/style/battle.css index 5f0ddb04c4..bf73ed2d9d 100644 --- a/style/battle.css +++ b/style/battle.css @@ -77,10 +77,12 @@ License: GPLv2 } .battle-log-inline { position: static; - top: auto; - right: auto; - bottom: auto; - left: auto; + border: 1px solid #AAAAAA; + background: #EEF2F5; + color: black; + max-width: 640px; + margin: 0 auto 80px; + padding-bottom: 5px; height: auto; width: auto; overflow-y: auto;