From 879d9a1d27161b9d46367d80e6e204e1c1a94a66 Mon Sep 17 00:00:00 2001 From: dragoni7 Date: Sun, 15 Sep 2024 20:53:24 -0700 Subject: [PATCH] Change stats table to have responsive sizing --- src/features/armor-optimization/StatsTable.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/features/armor-optimization/StatsTable.tsx b/src/features/armor-optimization/StatsTable.tsx index e22dbd1..cdd9b74 100644 --- a/src/features/armor-optimization/StatsTable.tsx +++ b/src/features/armor-optimization/StatsTable.tsx @@ -41,7 +41,7 @@ const CardContainer = styled(Box)(({ theme }) => ({ alignItems: 'center', justifyContent: 'center', height: '100%', - width: '440px', + width: '70%', padding: theme.spacing(0, 1), })); @@ -226,20 +226,20 @@ const StatsTable: React.FC = ({ permutations, onPermutationClic await onPermutationClick(perm); }} > - + {perm.permutation.map((item, idx) => ( - + - + ))} - + {(STATS as StatName[]).map((stat) => ( - + {calculateTotal(perm, stat)} @@ -250,7 +250,7 @@ const StatsTable: React.FC = ({ permutations, onPermutationClic {(STATS as StatName[]).map((stat) => perm.modsArray[stat].map((mod, idx) => ( - +