From d9b22431fae8d9c8304c28f683b62a70274f8b9e Mon Sep 17 00:00:00 2001 From: tresabhi <43380238+tresabhi@users.noreply.github.com> Date: Thu, 28 May 2026 14:13:19 -0500 Subject: [PATCH] refine layout --- .../index.module.css | 8 ---- .../TankopediaCharacteristics/index.tsx | 12 ++---- .../components/TankopediaLoadout/index.tsx | 16 +++----- .../TankopediaNavigation/index.module.css | 20 ---------- .../components/TankopediaNavigation/index.tsx | 37 ------------------- .../TankopediaSandbox/index.module.css | 17 +++++---- .../components/TankopediaSandbox/index.tsx | 31 ++++++++-------- .../tanks/[slug]/_index.module.css | 9 +++-- .../pages/[...locale]/tanks/[slug]/_index.tsx | 16 +++----- packages/website-ue/src/stores/tankopedia.ts | 7 ---- 10 files changed, 45 insertions(+), 128 deletions(-) delete mode 100644 packages/website-ue/src/components/TankopediaNavigation/index.module.css delete mode 100644 packages/website-ue/src/components/TankopediaNavigation/index.tsx diff --git a/packages/website-ue/src/components/TankopediaCharacteristics/index.module.css b/packages/website-ue/src/components/TankopediaCharacteristics/index.module.css index e834eff75..0c4d41083 100644 --- a/packages/website-ue/src/components/TankopediaCharacteristics/index.module.css +++ b/packages/website-ue/src/components/TankopediaCharacteristics/index.module.css @@ -1,19 +1,11 @@ .characteristics { padding: var(--space-5); - padding-top: var(--space-6); display: flex; flex-direction: column; gap: var(--space-5); box-sizing: border-box; - max-height: 100%; - overflow-y: auto; - - &[data-visible="false"] { - display: none; - } - .group { display: flex; flex-direction: column; diff --git a/packages/website-ue/src/components/TankopediaCharacteristics/index.tsx b/packages/website-ue/src/components/TankopediaCharacteristics/index.tsx index e96336710..fc8d11096 100644 --- a/packages/website-ue/src/components/TankopediaCharacteristics/index.tsx +++ b/packages/website-ue/src/components/TankopediaCharacteristics/index.tsx @@ -1,21 +1,17 @@ import { CaretDownIcon, CaretRightIcon } from "@radix-ui/react-icons"; +import { useStrings } from "../../hooks/useStrings"; +import { Tankopedia } from "../../stores/tankopedia"; import { characteristicsOrder, type CharacteristicRenderConfig, type CharacteristicsGroup, } from "../../tankopedia/characteristicsOrder"; -import styles from "./index.module.css"; import { Heading } from "../Heading"; -import { Tankopedia, TankopediaTab } from "../../stores/tankopedia"; -import { useStrings } from "../../hooks/useStrings"; +import styles from "./index.module.css"; export function TankopediaCharacteristics() { - const isVisible = Tankopedia.use( - (state) => state.tab === TankopediaTab.Characteristics, - ); - return ( -