diff --git a/packages/website/src/components/DropdownMenu/index.module.css b/packages/website/src/components/DropdownMenu/index.module.css index ef059cd40..7d86f0141 100644 --- a/packages/website/src/components/DropdownMenu/index.module.css +++ b/packages/website/src/components/DropdownMenu/index.module.css @@ -23,7 +23,8 @@ } .Item, - .CheckboxItem { + .CheckboxItem, + .RadioItem { position: relative; background-color: var(--gray-3); diff --git a/packages/website/src/components/TankSearchFilters/index.module.css b/packages/website/src/components/TankSearchFilters/index.module.css index 4f60fc8e4..9500fa0d5 100644 --- a/packages/website/src/components/TankSearchFilters/index.module.css +++ b/packages/website/src/components/TankSearchFilters/index.module.css @@ -1,5 +1,6 @@ .filters { display: flex; + flex-wrap: wrap; gap: var(--space-3); diff --git a/packages/website/src/components/TankSearchFilters/index.tsx b/packages/website/src/components/TankSearchFilters/index.tsx index 9ff1d8734..d750740f4 100644 --- a/packages/website/src/components/TankSearchFilters/index.tsx +++ b/packages/website/src/components/TankSearchFilters/index.tsx @@ -5,9 +5,9 @@ import locales from "@blitzkit/i18n/locales.json"; import { ShellType, TankType } from "@blitzkit/protos"; import { CheckIcon, + DotFilledIcon, LockClosedIcon, LockOpen2Icon, - ResetIcon, TrashIcon, } from "@radix-ui/react-icons"; import { Fragment } from "react"; @@ -27,7 +27,6 @@ import { MissingShellIcon } from "../MissingShellIcon"; import { ResearchedIcon } from "../ResearchedIcon"; import { ScienceIcon } from "../ScienceIcon"; import { ScienceOffIcon } from "../ScienceOffIcon"; -import { Text } from "../Text"; import { Tooltip } from "../Tooltip"; import styles from "./index.module.css"; @@ -163,13 +162,13 @@ export function TankSearchFilters() { - {/* + - */} + ); } @@ -183,7 +182,7 @@ function ResetButton() { TankFilters.set(TankFilters.initial); }} > - + ); } @@ -586,11 +585,11 @@ function TypeFilter() { function ShellFilter() { return ( - +
- +
); } @@ -607,15 +606,13 @@ function IndividualShellFilter({ return ( - + {shells[index] === null && ( - - - + )} + {shells[index] !== null && ( - + + + { strings.common.shells[ @@ -666,6 +657,15 @@ function IndividualShellFilter({ ] as keyof typeof strings.common.shells ] } + + ); })} @@ -686,8 +686,9 @@ function IndividualShellFilter({ }); }} > - {strings.website.common.tank_search.clear} + + @@ -821,8 +822,8 @@ function ConsumablesFilter() { return ( -