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 ( -