From 0924a777768cac68475392d20a4c3a6690136e8d Mon Sep 17 00:00:00 2001 From: tresabhi <43380238+tresabhi@users.noreply.github.com> Date: Sun, 20 Apr 2025 21:13:40 -0500 Subject: [PATCH] fix: mas width for meta section --- .../Tankopedia/MetaSection/index.tsx | 248 +++++++++--------- 1 file changed, 127 insertions(+), 121 deletions(-) diff --git a/packages/website/src/components/Tankopedia/MetaSection/index.tsx b/packages/website/src/components/Tankopedia/MetaSection/index.tsx index ef108487f..56b53b7c6 100644 --- a/packages/website/src/components/Tankopedia/MetaSection/index.tsx +++ b/packages/website/src/components/Tankopedia/MetaSection/index.tsx @@ -25,154 +25,160 @@ export function MetaSection() { const { locale, strings } = useLocale(); return ( - + - - - - - - - {protagonist.nation} - { - strings.common.nations[ - protagonist.nation as keyof typeof strings.common.nations - ] + + + + + + + {protagonist.nation} + { + strings.common.nations[ + protagonist.nation as keyof typeof strings.common.nations + ] + } + + + + + + {strings.common.tank_class_short[protagonist.class]} + + + + {TIER_ROMAN_NUMERALS[protagonist.tier]} + + - - - - - {strings.common.tank_class_short[protagonist.class]} - - - - {TIER_ROMAN_NUMERALS[protagonist.tier]} - - - {strings.common.tree_type[protagonist.type]} - - + > + {strings.common.tree_type[protagonist.type]} + + - - {developerMode && ( - - {protagonist.id} - - )} - {protagonist.type === TankType.PREMIUM && ( + + {developerMode && ( + + {protagonist.id} + + )} + {protagonist.type === TankType.PREMIUM && ( + + + {protagonist.price.value / 400} + gold + + + )} - {protagonist.price.value / 400} + {protagonist.price.value.toLocaleString(locale)} gold - )} - - - {protagonist.price.value.toLocaleString(locale)} - {TankPriceType[protagonist.price.type]} - - - - - {(protagonist.price.value / 2).toLocaleString(locale)} - {TankPriceType[protagonist.price.type]} - - - {protagonist.research_cost && ( - + - {( - protagonist.research_cost.research_cost_type! - .value as number - ).toLocaleString(locale)} + {(protagonist.price.value / 2).toLocaleString(locale)} xp - )} + {protagonist.research_cost && ( + + + {( + protagonist.research_cost.research_cost_type! + .value as number + ).toLocaleString(locale)} + xp + + + )} + - + - + ); }