From 7871eae7a3c3c40a24558ddf6d7cd2633a61fe57 Mon Sep 17 00:00:00 2001 From: Mark Greene Date: Tue, 30 Dec 2025 15:50:43 +1300 Subject: [PATCH] revert changes --- .../GenericTankComponentButton.tsx | 5 ++- .../components/Modules.tsx | 38 +------------------ 2 files changed, 4 insertions(+), 39 deletions(-) diff --git a/packages/website/src/components/ModuleButtons/GenericTankComponentButton.tsx b/packages/website/src/components/ModuleButtons/GenericTankComponentButton.tsx index 1d9409963..2ca36cd35 100644 --- a/packages/website/src/components/ModuleButtons/GenericTankComponentButton.tsx +++ b/packages/website/src/components/ModuleButtons/GenericTankComponentButton.tsx @@ -34,14 +34,15 @@ export function GenericTankComponentButton({ height: 32, position: 'absolute', opacity: props.disabled ? 0.5 : 1, - transform: 'translate(-50%, -50%) scale(1)', + transform: 'translate(-50%, -50%) scale(0.75)', top: '50%', left: '50%', ...iconStyles, }} /> + {children} ); -} \ No newline at end of file +} diff --git a/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Modules.tsx b/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Modules.tsx index 1170e5e16..c7fc9837f 100644 --- a/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Modules.tsx +++ b/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Modules.tsx @@ -182,7 +182,7 @@ export function Modules() { ); if (gunInNewTurret) { - // Gun exists - get it FROM this turret + // Gun exists - get it FROM this turret (this fixes the bug!) draft.protagonist.gun = gunInNewTurret; draft.protagonist.shell = gunInNewTurret.shells[0]; } else { @@ -392,42 +392,6 @@ export function Modules() { > {strings.website.tools.tankopedia.configuration.modules.upgrade} - )}