mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 02:37:05 +02:00
ui shit
This commit is contained in:
1 parent
830e1597e7
commit
8ec7fcb90a
3 files changed
+12
-18
No files matched your search
@@ -1,4 +1,6 @@
|
|||||||
.section {
|
.section {
|
||||||
|
padding: var(--space-5);
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import {
|
import {
|
||||||
metaSortTank,
|
metaSortTank,
|
||||||
normalizeBoundingBox,
|
normalizeBoundingBox,
|
||||||
resolveDpm,
|
|
||||||
SEARCH_KEYS,
|
SEARCH_KEYS,
|
||||||
unionBoundingBox,
|
unionBoundingBox,
|
||||||
} from "@blitzkit/core";
|
} from "@blitzkit/core";
|
||||||
@@ -44,6 +43,10 @@ export type TankSearchProps = MaybeSkeletonComponentProps & {
|
|||||||
onSelectAll?: (tanks: TankDefinition[]) => void;
|
onSelectAll?: (tanks: TankDefinition[]) => void;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
function resolveDpm(a: any, b: any) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
const [gameDefinitions, modelDefinitions, tankDefinitions, tankNames] =
|
const [gameDefinitions, modelDefinitions, tankDefinitions, tankNames] =
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
api.game(),
|
api.game(),
|
||||||
|
|||||||
@@ -1,9 +1,4 @@
|
|||||||
import {
|
import { alias, gunTypeOrder, romanize, treeTypeOrder } from "@blitzkit/core";
|
||||||
alias,
|
|
||||||
gunTypeOrder,
|
|
||||||
romanize,
|
|
||||||
treeTypeOrder,
|
|
||||||
} from "@blitzkit/core";
|
|
||||||
import { tankClassOrder } from "@blitzkit/core/src/config/tankClassOrder";
|
import { tankClassOrder } from "@blitzkit/core/src/config/tankClassOrder";
|
||||||
import { literals } from "@blitzkit/i18n";
|
import { literals } from "@blitzkit/i18n";
|
||||||
import locales from "@blitzkit/i18n/locales.json";
|
import locales from "@blitzkit/i18n/locales.json";
|
||||||
@@ -620,13 +615,7 @@ function IndividualShellFilter({
|
|||||||
return (
|
return (
|
||||||
<DropdownMenu.Root modal={false}>
|
<DropdownMenu.Root modal={false}>
|
||||||
<DropdownMenu.Trigger asChild>
|
<DropdownMenu.Trigger asChild>
|
||||||
<IconButton
|
<IconButton listChild size="minor" variant="surface" color="gray">
|
||||||
listChild
|
|
||||||
size="minor"
|
|
||||||
variant="surface"
|
|
||||||
color="gray"
|
|
||||||
highContrast
|
|
||||||
>
|
|
||||||
{shells[index] === null && (
|
{shells[index] === null && (
|
||||||
<Text lowContrast className={styles["shell-icon"]}>
|
<Text lowContrast className={styles["shell-icon"]}>
|
||||||
<MissingShellIcon width="1em" height="1em" />
|
<MissingShellIcon width="1em" height="1em" />
|
||||||
@@ -739,10 +728,10 @@ function OwnershipFilterInternal() {
|
|||||||
borderTopRightRadius: 0,
|
borderTopRightRadius: 0,
|
||||||
borderBottomRightRadius: 0,
|
borderBottomRightRadius: 0,
|
||||||
}}
|
}}
|
||||||
|
listChild
|
||||||
disabled={!wargaming}
|
disabled={!wargaming}
|
||||||
variant={showOwned ? "solid" : "surface"}
|
variant={showOwned ? "solid" : "surface"}
|
||||||
color={showOwned ? undefined : "gray"}
|
color={showOwned ? undefined : "gray"}
|
||||||
highContrast
|
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
TankFilters.mutate((draft) => {
|
TankFilters.mutate((draft) => {
|
||||||
draft.showOwned = !draft.showOwned;
|
draft.showOwned = !draft.showOwned;
|
||||||
@@ -759,10 +748,10 @@ function OwnershipFilterInternal() {
|
|||||||
borderBottomLeftRadius: 0,
|
borderBottomLeftRadius: 0,
|
||||||
marginLeft: "-1px",
|
marginLeft: "-1px",
|
||||||
}}
|
}}
|
||||||
|
listChild
|
||||||
disabled={!wargaming}
|
disabled={!wargaming}
|
||||||
variant={showUnowned ? "solid" : "surface"}
|
variant={showUnowned ? "solid" : "surface"}
|
||||||
color={showUnowned ? undefined : "gray"}
|
color={showUnowned ? undefined : "gray"}
|
||||||
highContrast
|
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
TankFilters.mutate((draft) => {
|
TankFilters.mutate((draft) => {
|
||||||
draft.showUnowned = !draft.showUnowned;
|
draft.showUnowned = !draft.showUnowned;
|
||||||
@@ -789,7 +778,7 @@ function TestFilter() {
|
|||||||
}}
|
}}
|
||||||
variant={showNonTesting ? "solid" : "surface"}
|
variant={showNonTesting ? "solid" : "surface"}
|
||||||
color={showNonTesting ? undefined : "gray"}
|
color={showNonTesting ? undefined : "gray"}
|
||||||
highContrast
|
listChild
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
TankFilters.mutate((draft) => {
|
TankFilters.mutate((draft) => {
|
||||||
draft.showNonTesting = !draft.showNonTesting;
|
draft.showNonTesting = !draft.showNonTesting;
|
||||||
@@ -810,7 +799,7 @@ function TestFilter() {
|
|||||||
}}
|
}}
|
||||||
variant={showTesting ? "solid" : "surface"}
|
variant={showTesting ? "solid" : "surface"}
|
||||||
color={showTesting ? undefined : "gray"}
|
color={showTesting ? undefined : "gray"}
|
||||||
highContrast
|
listChild
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
TankFilters.mutate((draft) => {
|
TankFilters.mutate((draft) => {
|
||||||
draft.showTesting = !draft.showTesting;
|
draft.showTesting = !draft.showTesting;
|
||||||
|
|||||||
Reference in new issue
Block a user