From 939acad30c0c039dfab098e7f2609d8a609f6c2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Tue, 6 Feb 2024 13:28:05 -0600 Subject: [PATCH] feat: compact search --- src/app/tools/tankopedia/components/TankSearch/index.tsx | 7 ++++--- src/app/tools/tankopedia/page.css.ts | 6 ++++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/app/tools/tankopedia/components/TankSearch/index.tsx b/src/app/tools/tankopedia/components/TankSearch/index.tsx index 4d5535050..277a61520 100644 --- a/src/app/tools/tankopedia/components/TankSearch/index.tsx +++ b/src/app/tools/tankopedia/components/TankSearch/index.tsx @@ -43,7 +43,7 @@ const tankTypeOrder: TankType[] = ['light', 'medium', 'heavy', 'tankDestroyer']; const treeTypeOrder: TreeType[] = ['researchable', 'premium', 'collector']; export function TankSearch({ compact, onSelect = () => {} }: TankSearchProps) { - const tanksPerPage = compact ? 16 : 24; + const tanksPerPage = compact ? 64 : 96; const nations = use(NATIONS); const filters = useTankopediaPersistent((state) => state.filters); const sort = useTankopediaPersistent((state) => state.sort); @@ -213,7 +213,7 @@ export function TankSearch({ compact, onSelect = () => {} }: TankSearchProps) { )} - + {!compact && searchResultsPageSlice.map((tank) => ( {} }: TankSearchProps) { style={{ flex: 1, cursor: 'pointer', + height: 64, }} >