From 74026c10ca6202b31e02b77a472f583f283ea744 Mon Sep 17 00:00:00 2001 From: mbergen Date: Mon, 21 Oct 2024 10:04:59 +0200 Subject: [PATCH] fix(match2): unstandardized pick/ban champion size is max (#4925) * fix(match2) Pick/Ban champion icon class on brawlstars * also add size * omegastrikers * cr --- components/match2/wikis/brawlstars/match_summary.lua | 3 ++- components/match2/wikis/clashroyale/match_summary.lua | 3 ++- components/match2/wikis/omegastrikers/match_summary.lua | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/components/match2/wikis/brawlstars/match_summary.lua b/components/match2/wikis/brawlstars/match_summary.lua index 79bb3b26205..de1309583fd 100644 --- a/components/match2/wikis/brawlstars/match_summary.lua +++ b/components/match2/wikis/brawlstars/match_summary.lua @@ -115,11 +115,12 @@ function Brawler:_opponentBrawlerDisplay(brawlerData, numberOfBrawlers, flip, da for index = 1, numberOfBrawlers do local brawlerDisplay = mw.html.create('div') :addClass('brkts-popup-side-color-' .. (flip and 'red' or 'blue')) + :addClass('brkts-champion-icon') :css('float', flip and 'right' or 'left') :node(CharacterIcon.Icon{ character = brawlerData[index] or NO_CHARACTER, - class = 'brkts-champion-icon', date = date, + size = '48px' }) if index == 1 then brawlerDisplay:css('padding-left', '2px') diff --git a/components/match2/wikis/clashroyale/match_summary.lua b/components/match2/wikis/clashroyale/match_summary.lua index 33990d1157b..42efe896a1c 100644 --- a/components/match2/wikis/clashroyale/match_summary.lua +++ b/components/match2/wikis/clashroyale/match_summary.lua @@ -437,7 +437,8 @@ function CustomMatchSummary._opponentCardsDisplay(args) :addClass('brkts-champion-icon') :node(CharacterIcon.Icon{ character = card, - date = date + date = date, + size = '48px' }) ) end diff --git a/components/match2/wikis/omegastrikers/match_summary.lua b/components/match2/wikis/omegastrikers/match_summary.lua index 74e8acf3c3b..66ec67222d0 100644 --- a/components/match2/wikis/omegastrikers/match_summary.lua +++ b/components/match2/wikis/omegastrikers/match_summary.lua @@ -75,11 +75,12 @@ function Striker:_opponentStrikerDisplay(strikerData, numberOfStrikers, flip, da for index = 1, numberOfStrikers do local strikerDisplay = mw.html.create('div') :addClass('brkts-popup-side-color-' .. (flip and 'red' or 'blue')) + :addClass('brkts-champion-icon') :css('float', flip and 'right' or 'left') :node(CharacterIcon.Icon{ character = strikerData[index] or NO_CHARACTER, - class = 'brkts-champion-icon', date = date, + size = '48px', }) if index == 1 then strikerDisplay:css('padding-left', '2px')