diff --git a/src/app/tools/tankopedia/[id]/components/Model/TechTreeSection.tsx b/src/app/tools/tankopedia/[id]/components/Model/TechTreeSection.tsx index efc575ed3..830576853 100644 --- a/src/app/tools/tankopedia/[id]/components/Model/TechTreeSection.tsx +++ b/src/app/tools/tankopedia/[id]/components/Model/TechTreeSection.tsx @@ -6,6 +6,7 @@ import PageWrapper from '../../../../../../components/PageWrapper'; import { asset } from '../../../../../../core/blitzkit/asset'; import { tankDefinitions } from '../../../../../../core/blitzkit/tankDefinitions'; import { TIER_ROMAN_NUMERALS } from '../../../../../../core/blitzkit/tankDefinitions/constants'; +import { useWideFormat } from '../../../../../../hooks/useWideFormat'; import { useDuel } from '../../../../../../stores/duel'; export function TreeArrow({ @@ -50,6 +51,7 @@ export function TreeArrow({ } export function TechTreeSection() { + const wideFormat = useWideFormat(720); const awaitedTankDefinitions = use(tankDefinitions); const tank = useDuel((state) => state.protagonist!.tank); @@ -65,6 +67,7 @@ export function TechTreeSection() { style={{ textDecoration: 'none', color: 'inherit', + position: 'relative', }} > @@ -125,9 +128,6 @@ export function TechTreeSection() { return ( - {tank.nation} - {/* Tech tree */} @@ -159,15 +145,14 @@ export function TechTreeSection() { {tank.ancestors && ( <> - + )} - + + {tank.nation} + {tank.successors && ( <> - +