diff --git a/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/components/Crew.tsx b/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/components/Crew.tsx index 5913806f4..b435770af 100644 --- a/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/components/Crew.tsx +++ b/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/components/Crew.tsx @@ -9,6 +9,7 @@ import { useLocale } from '../../../../../../hooks/useLocale'; import { Duel } from '../../../../../../stores/duel'; import type { StatsAcceptorProps } from './HullTraverseVisualizer'; import { InfoWithDelta } from './InfoWithDelta'; +import { StatsTableWrapper } from './StatsTableWrapper'; const provisionDefinitions = await awaitableProvisionDefinitions; @@ -28,7 +29,7 @@ export function Crew({ stats }: StatsAcceptorProps) { const commanderMastery = 1 + provisionCrewBonus; return ( - + {strings.website.tools.tankopedia.crew.title} @@ -107,6 +108,6 @@ export function Crew({ stats }: StatsAcceptorProps) { ); })} - + ); } diff --git a/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/components/Firepower.tsx b/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/components/Firepower.tsx index 42c469f3f..fbff198e6 100644 --- a/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/components/Firepower.tsx +++ b/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/components/Firepower.tsx @@ -25,6 +25,7 @@ import type { StatsAcceptorProps } from './HullTraverseVisualizer'; import { Info } from './Info'; import { InfoWithDelta } from './InfoWithDelta'; import { RicochetVisualizer } from './RicochetVisualizer'; +import { StatsTableWrapper } from './StatsTableWrapper'; export function Firepower({ stats }: StatsAcceptorProps) { const mutateDuel = Duel.useMutation(); @@ -57,7 +58,7 @@ export function Firepower({ stats }: StatsAcceptorProps) { }, [penetrationDistance]); return ( - + {strings.website.tools.tankopedia.firepower.title} @@ -409,6 +410,6 @@ export function Firepower({ stats }: StatsAcceptorProps) { /> )} - + ); } diff --git a/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/components/Maneuverability.tsx b/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/components/Maneuverability.tsx index c23ce3b1b..ef659653d 100644 --- a/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/components/Maneuverability.tsx +++ b/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/components/Maneuverability.tsx @@ -1,4 +1,4 @@ -import { Flex, Heading } from '@radix-ui/themes'; +import { Heading } from '@radix-ui/themes'; import { useLocale } from '../../../../../../hooks/useLocale'; import { HullTraverseVisualizer, @@ -6,12 +6,13 @@ import { } from './HullTraverseVisualizer'; import { Info } from './Info'; import { InfoWithDelta } from './InfoWithDelta'; +import { StatsTableWrapper } from './StatsTableWrapper'; export function Maneuverability({ stats }: StatsAcceptorProps) { const { strings } = useLocale(); return ( - + {strings.website.tools.tankopedia.maneuverability.title} @@ -145,6 +146,6 @@ export function Maneuverability({ stats }: StatsAcceptorProps) { /> - + ); } diff --git a/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/components/RicochetVisualizer.tsx b/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/components/RicochetVisualizer.tsx index 801c0db20..cdc91135f 100644 --- a/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/components/RicochetVisualizer.tsx +++ b/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/components/RicochetVisualizer.tsx @@ -46,7 +46,7 @@ export function RicochetVisualizer({ stats }: StatsAcceptorProps) { top="0" left="0" style={{ - background: `linear-gradient(to right, ${Var('gray-a1')}, ${Var('gray-a5')})`, + background: `linear-gradient(to right, transparent, ${Var('gray-a4')})`, }} > @@ -144,7 +144,7 @@ export function RicochetVisualizer({ stats }: StatsAcceptorProps) { > + ); +} diff --git a/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/components/Survivability.tsx b/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/components/Survivability.tsx index 9798c129e..4f328293d 100644 --- a/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/components/Survivability.tsx +++ b/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/components/Survivability.tsx @@ -1,15 +1,16 @@ -import { Flex, Heading } from '@radix-ui/themes'; +import { Heading } from '@radix-ui/themes'; import { useLocale } from '../../../../../../hooks/useLocale'; import type { StatsAcceptorProps } from './HullTraverseVisualizer'; import { Info } from './Info'; import { InfoWithDelta } from './InfoWithDelta'; +import { StatsTableWrapper } from './StatsTableWrapper'; import { ViewRangeVisualizer } from './ViewRangeVisualizer'; export function Survivability({ stats }: StatsAcceptorProps) { const { strings } = useLocale(); return ( - + {strings.website.tools.tankopedia.survivability.title} @@ -110,6 +111,6 @@ export function Survivability({ stats }: StatsAcceptorProps) { stats={stats} value="volume" /> - + ); } diff --git a/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/index.tsx b/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/index.tsx index 0558e8b9b..e1ea6afcf 100644 --- a/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/index.tsx +++ b/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/index.tsx @@ -83,19 +83,16 @@ export function Characteristics() { }, [hasImprovedVerticalStabilizer, hasDownImprovedVerticalStabilizer]); return ( - + - - - - + + + + + + + ); diff --git a/packages/website/src/components/Tankopedia/CharacteristicsSection/index.tsx b/packages/website/src/components/Tankopedia/CharacteristicsSection/index.tsx index 2ea24988a..95552d5e5 100644 --- a/packages/website/src/components/Tankopedia/CharacteristicsSection/index.tsx +++ b/packages/website/src/components/Tankopedia/CharacteristicsSection/index.tsx @@ -24,7 +24,7 @@ export function CharacteristicsSection() { @@ -35,13 +35,7 @@ export function CharacteristicsSection() { - +