From 8ec7fcb90ac1bf3787feeaa9b7f4561c9eca057c Mon Sep 17 00:00:00 2001 From: tresabhi <43380238+tresabhi@users.noreply.github.com> Date: Tue, 13 Oct 2026 21:14:42 -0500 Subject: [PATCH] ui shit --- .../src/components/Section/index.module.css | 2 ++ .../src/components/TankSearch/index.tsx | 5 +++- .../components/TankSearchFilters/index.tsx | 23 +++++-------------- 3 files changed, 12 insertions(+), 18 deletions(-) diff --git a/packages/website/src/components/Section/index.module.css b/packages/website/src/components/Section/index.module.css index d1984d8e0..85725229d 100644 --- a/packages/website/src/components/Section/index.module.css +++ b/packages/website/src/components/Section/index.module.css @@ -1,4 +1,6 @@ .section { + padding: var(--space-5); + display: flex; justify-content: center; diff --git a/packages/website/src/components/TankSearch/index.tsx b/packages/website/src/components/TankSearch/index.tsx index a1f633a08..aac24e30d 100644 --- a/packages/website/src/components/TankSearch/index.tsx +++ b/packages/website/src/components/TankSearch/index.tsx @@ -1,7 +1,6 @@ import { metaSortTank, normalizeBoundingBox, - resolveDpm, SEARCH_KEYS, unionBoundingBox, } from "@blitzkit/core"; @@ -44,6 +43,10 @@ export type TankSearchProps = MaybeSkeletonComponentProps & { onSelectAll?: (tanks: TankDefinition[]) => void; }; +function resolveDpm(a: any, b: any) { + return 0; +} + const [gameDefinitions, modelDefinitions, tankDefinitions, tankNames] = await Promise.all([ api.game(), diff --git a/packages/website/src/components/TankSearchFilters/index.tsx b/packages/website/src/components/TankSearchFilters/index.tsx index 029509870..919a7af1d 100644 --- a/packages/website/src/components/TankSearchFilters/index.tsx +++ b/packages/website/src/components/TankSearchFilters/index.tsx @@ -1,9 +1,4 @@ -import { - alias, - gunTypeOrder, - romanize, - treeTypeOrder, -} from "@blitzkit/core"; +import { alias, gunTypeOrder, romanize, treeTypeOrder } from "@blitzkit/core"; import { tankClassOrder } from "@blitzkit/core/src/config/tankClassOrder"; import { literals } from "@blitzkit/i18n"; import locales from "@blitzkit/i18n/locales.json"; @@ -620,13 +615,7 @@ function IndividualShellFilter({ return ( - + {shells[index] === null && ( @@ -739,10 +728,10 @@ function OwnershipFilterInternal() { borderTopRightRadius: 0, borderBottomRightRadius: 0, }} + listChild disabled={!wargaming} variant={showOwned ? "solid" : "surface"} color={showOwned ? undefined : "gray"} - highContrast onClick={() => { TankFilters.mutate((draft) => { draft.showOwned = !draft.showOwned; @@ -759,10 +748,10 @@ function OwnershipFilterInternal() { borderBottomLeftRadius: 0, marginLeft: "-1px", }} + listChild disabled={!wargaming} variant={showUnowned ? "solid" : "surface"} color={showUnowned ? undefined : "gray"} - highContrast onClick={() => { TankFilters.mutate((draft) => { draft.showUnowned = !draft.showUnowned; @@ -789,7 +778,7 @@ function TestFilter() { }} variant={showNonTesting ? "solid" : "surface"} color={showNonTesting ? undefined : "gray"} - highContrast + listChild onClick={() => { TankFilters.mutate((draft) => { draft.showNonTesting = !draft.showNonTesting; @@ -810,7 +799,7 @@ function TestFilter() { }} variant={showTesting ? "solid" : "surface"} color={showTesting ? undefined : "gray"} - highContrast + listChild onClick={() => { TankFilters.mutate((draft) => { draft.showTesting = !draft.showTesting;