From 66bfa4e67d546b9895a32efef5094dc631c61266 Mon Sep 17 00:00:00 2001 From: ElectricalBoy <15651807+ElectricalBoy@users.noreply.github.com> Date: Wed, 6 May 2026 17:07:56 +0900 Subject: [PATCH 1/2] prioritize manual input --- lua/wikis/commons/MatchSummary/Base.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/wikis/commons/MatchSummary/Base.lua b/lua/wikis/commons/MatchSummary/Base.lua index 22debcc9fd6..8e234bf1c8f 100644 --- a/lua/wikis/commons/MatchSummary/Base.lua +++ b/lua/wikis/commons/MatchSummary/Base.lua @@ -293,9 +293,11 @@ function MatchSummary.defaultGetByMatchId(CustomMatchSummary, args, options) args.bracketId, args.matchId) ---@type (fun(match: MatchGroupUtilMatch):string?)|string|integer? - local width = options.width or args.width + local width = args.width or options.width if type(width) == 'function' then width = width(match) + elseif Logic.isNumeric(width) then + width = width .. 'px' end return MatchSummaryWidgets.Container{ From 3c4d884e5a863e86b3147c5acff53cc6149a4e5b Mon Sep 17 00:00:00 2001 From: ElectricalBoy <15651807+ElectricalBoy@users.noreply.github.com> Date: Wed, 6 May 2026 17:08:15 +0900 Subject: [PATCH 2/2] kick px stripping --- lua/wikis/commons/MatchGroup/Display/SingleMatch.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/wikis/commons/MatchGroup/Display/SingleMatch.lua b/lua/wikis/commons/MatchGroup/Display/SingleMatch.lua index 35c82728139..c3317600210 100644 --- a/lua/wikis/commons/MatchGroup/Display/SingleMatch.lua +++ b/lua/wikis/commons/MatchGroup/Display/SingleMatch.lua @@ -22,7 +22,7 @@ local SingleMatchDisplay = {} ---@return table function SingleMatchDisplay.configFromArgs(args) return { - width = tonumber((string.gsub(args.width or '', 'px', ''))), + width = args.width, } end