mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59:50 +02:00
feat: bigger icons
This commit is contained in:
1 parent
b2856eab58
commit
e16cc63cfe
1 file changed
+32
-10
@@ -345,7 +345,7 @@ function ClassFilter() {
|
|||||||
checked={selected}
|
checked={selected}
|
||||||
key={tankClass}
|
key={tankClass}
|
||||||
>
|
>
|
||||||
<Icon style={{ width: "1em", height: "1em" }} />
|
<Icon style={{ width: "1.25em", height: "1.25em" }} />
|
||||||
|
|
||||||
{strings.common.tank_class_medium[tankClass]}
|
{strings.common.tank_class_medium[tankClass]}
|
||||||
</DropdownMenu.CheckboxItem>
|
</DropdownMenu.CheckboxItem>
|
||||||
@@ -423,7 +423,7 @@ function GunTypeFilter() {
|
|||||||
checked={selected}
|
checked={selected}
|
||||||
key={gunType}
|
key={gunType}
|
||||||
>
|
>
|
||||||
<Icon style={{ width: "1em", height: "1em" }} />
|
<Icon style={{ width: "1.25em", height: "1.25em" }} />
|
||||||
|
|
||||||
{strings.common.gun_types[gunType]}
|
{strings.common.gun_types[gunType]}
|
||||||
</DropdownMenu.CheckboxItem>
|
</DropdownMenu.CheckboxItem>
|
||||||
@@ -506,8 +506,8 @@ function TypeFilter() {
|
|||||||
tankType === TankType.RESEARCHABLE ? "12" : "11"
|
tankType === TankType.RESEARCHABLE ? "12" : "11"
|
||||||
})`,
|
})`,
|
||||||
opacity: 1,
|
opacity: 1,
|
||||||
width: "1em",
|
width: "1.25em",
|
||||||
height: "1em",
|
height: "1.25em",
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
@@ -600,7 +600,9 @@ function IndividualShellFilter({
|
|||||||
<DropdownMenu.RadioItem
|
<DropdownMenu.RadioItem
|
||||||
key={shellType}
|
key={shellType}
|
||||||
value={`${shellType}`}
|
value={`${shellType}`}
|
||||||
onClick={() => {
|
onClick={(event) => {
|
||||||
|
event.preventDefault();
|
||||||
|
|
||||||
const mutated = [...shells] as TankFilters["shells"];
|
const mutated = [...shells] as TankFilters["shells"];
|
||||||
|
|
||||||
mutated[index] = selected ? null : shellType;
|
mutated[index] = selected ? null : shellType;
|
||||||
@@ -617,7 +619,7 @@ function IndividualShellFilter({
|
|||||||
premium ? "_premium" : ""
|
premium ? "_premium" : ""
|
||||||
}.webp`
|
}.webp`
|
||||||
)}
|
)}
|
||||||
style={{ width: "1em", height: "1em" }}
|
style={{ width: "1.25em", height: "1.25em" }}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{
|
{
|
||||||
@@ -630,6 +632,26 @@ function IndividualShellFilter({
|
|||||||
</DropdownMenu.RadioItem>
|
</DropdownMenu.RadioItem>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
|
|
||||||
|
<DropdownMenu.Separator />
|
||||||
|
|
||||||
|
<DropdownMenu.Item
|
||||||
|
color="red"
|
||||||
|
onClick={(event) => {
|
||||||
|
event.preventDefault();
|
||||||
|
|
||||||
|
const mutated = [...shells] as TankFilters["shells"];
|
||||||
|
|
||||||
|
mutated[index] = null;
|
||||||
|
|
||||||
|
TankFilters.mutate((draft) => {
|
||||||
|
draft.shells = mutated;
|
||||||
|
});
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<TrashIcon />
|
||||||
|
{strings.website.common.tank_search.clear}
|
||||||
|
</DropdownMenu.Item>
|
||||||
</DropdownMenu.RadioGroup>
|
</DropdownMenu.RadioGroup>
|
||||||
</DropdownMenu.Content>
|
</DropdownMenu.Content>
|
||||||
</DropdownMenu.Root>
|
</DropdownMenu.Root>
|
||||||
@@ -805,8 +827,8 @@ function ConsumablesFilter() {
|
|||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
style={{
|
style={{
|
||||||
width: "1em",
|
width: "1.25em",
|
||||||
height: "1em",
|
height: "1.25em",
|
||||||
objectFit: "contain",
|
objectFit: "contain",
|
||||||
}}
|
}}
|
||||||
src={asset(`icons/consumables/${consumable}.webp`)}
|
src={asset(`icons/consumables/${consumable}.webp`)}
|
||||||
@@ -896,8 +918,8 @@ function AbilitiesFilter() {
|
|||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
style={{
|
style={{
|
||||||
width: "1em",
|
width: "1.25em",
|
||||||
height: "1em",
|
height: "1.25em",
|
||||||
objectFit: "contain",
|
objectFit: "contain",
|
||||||
}}
|
}}
|
||||||
src={asset(`icons/consumables/${ability}.webp`)}
|
src={asset(`icons/consumables/${ability}.webp`)}
|
||||||
|
|||||||
Reference in new issue
Block a user