From d511cfa4cc635d14c9d7c6b1367485f0cd1a0160 Mon Sep 17 00:00:00 2001 From: tresabhi Date: Wed, 9 Aug 2023 00:35:33 +0000 Subject: [PATCH] fix: fixed ratings reward alignment --- src/commands/ownedTanks.tsx | 14 ++++++++++++++ src/components/Leaderboard/components/Item.tsx | 5 +++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/src/commands/ownedTanks.tsx b/src/commands/ownedTanks.tsx index 341e40f65..3aa828d8f 100644 --- a/src/commands/ownedTanks.tsx +++ b/src/commands/ownedTanks.tsx @@ -178,3 +178,17 @@ export const ownedTanksCommand: CommandRegistry = { autocomplete: autocompleteUsername, }; + +// TODO: make this work in the future +// console.log('Caching tank images...'); +// TANKS.then((tanks) => +// jsxToSvg( +//
+// {tanks.map(({ images, tank_id }) => { +// return ( +// images.normal && +// ); +// })} +//
, +// ), +// ).then(() => console.log('Cached tank images')); diff --git a/src/components/Leaderboard/components/Item.tsx b/src/components/Leaderboard/components/Item.tsx index 77fc18097..93e855372 100644 --- a/src/components/Leaderboard/components/Item.tsx +++ b/src/components/Leaderboard/components/Item.tsx @@ -109,7 +109,7 @@ export function Item({ flex: 1, display: 'flex', alignItems: 'center', - justifyContent: 'center', + justifyContent: 'flex-end', gap: 4, }} > @@ -140,7 +140,8 @@ export function Item({ display: 'flex', gap: 4, alignItems: 'center', - justifyContent: 'center', + width: 96, + justifyContent: 'flex-end', }} > {deltaScore !== 0 && deltaScore !== undefined && (