diff --git a/packages/website/src/components/Armor/components/ShotDisplayCard.tsx b/packages/website/src/components/Armor/components/ShotDisplayCard.tsx index b5c0a2dc5..509f77d1c 100644 --- a/packages/website/src/components/Armor/components/ShotDisplayCard.tsx +++ b/packages/website/src/components/Armor/components/ShotDisplayCard.tsx @@ -52,21 +52,11 @@ function LayerEntry({ {layer.type === null && ( - <> - - {literals(strings.common.units.mm, [ - Math.round(layer.distance * 1000).toLocaleString(locale), - ])} - - - - {literals( - strings.website.tools.tankopedia.sandbox.dynamic.shot_card.stats - .ricochet_loss, - [Math.max(-100, -50 * layer.distance).toFixed(0)], - )} - - + + {literals(strings.common.units.mm, [ + Math.round(layer.distance * 1000).toLocaleString(locale), + ])} + )} {layer.type === ArmorType.External && ( @@ -93,9 +83,19 @@ function LayerEntry({ )} - {(layer.type === ArmorType.Primary || - layer.type === ArmorType.Spaced) && ( - + + {layer.type === null && ( + + {literals( + strings.website.tools.tankopedia.sandbox.dynamic.shot_card.stats + .ricochet_loss, + [Math.max(-100, -50 * layer.distance).toFixed(0)], + )} + + )} + + {(layer.type === ArmorType.Primary || + layer.type === ArmorType.Spaced) && ( {literals( strings.website.tools.tankopedia.sandbox.dynamic.shot_card.stats @@ -103,8 +103,8 @@ function LayerEntry({ [Math.round(layer.thickness).toLocaleString(locale)], )} - - )} + )} + ); } @@ -118,6 +118,8 @@ export function ShotDisplayCard({ shot, ...props }: ShotDisplayCardProps) { if (!shot) return null; + console.log(shot); + const outTitleColor = shot.out ? shotStatusColors[shot.out.status] : undefined;