From def470e80537d76a2d97730d5575886332245955 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com>
Date: Sat, 4 May 2024 17:42:32 -0500
Subject: [PATCH] feat: large tank icons
---
.../Characteristics/components/Modules.tsx | 21 ++++++++++---------
.../Model/CharacteristicsSection.tsx | 4 ++--
src/components/ConsumablesManager.tsx | 7 ++++++-
3 files changed, 19 insertions(+), 13 deletions(-)
diff --git a/src/app/tools/tankopedia/[id]/components/Characteristics/components/Modules.tsx b/src/app/tools/tankopedia/[id]/components/Characteristics/components/Modules.tsx
index 7ba2831d0..fe8e23a8a 100644
--- a/src/app/tools/tankopedia/[id]/components/Characteristics/components/Modules.tsx
+++ b/src/app/tools/tankopedia/[id]/components/Characteristics/components/Modules.tsx
@@ -6,7 +6,6 @@ import {
IconButton,
Link,
Text,
- Theme,
} from '@radix-ui/themes';
import { use } from 'react';
import { asset } from '../../../../../../../core/blitzkit/asset';
@@ -38,6 +37,7 @@ function ModuleButton({
notation: 'compact',
maximumFractionDigits: 0,
});
+ const isTank = unlock.type === 'vehicle';
const button = (
{TIER_ROMAN_NUMERALS[tier]}
@@ -70,6 +72,7 @@ function ModuleButton({
transform: 'translateX(-50%)',
}}
align="center"
+ gap={isTank ? '1' : undefined}
>
{numberFormat.format(unlock.cost.value)}
@@ -90,23 +93,21 @@ function ModuleButton({
);
- return unlock.type === 'vehicle' ? (
-
- {button}
-
+ return isTank ? (
+ {button}
) : (
button
);
diff --git a/src/app/tools/tankopedia/[id]/components/Model/CharacteristicsSection.tsx b/src/app/tools/tankopedia/[id]/components/Model/CharacteristicsSection.tsx
index 0320807b7..6f1998dcc 100644
--- a/src/app/tools/tankopedia/[id]/components/Model/CharacteristicsSection.tsx
+++ b/src/app/tools/tankopedia/[id]/components/Model/CharacteristicsSection.tsx
@@ -9,7 +9,7 @@ import { Provisions } from '../Characteristics/components/Provisions';
import { Skills } from '../Characteristics/components/Skills';
export function CharacteristicsSection() {
- const wideFormat = useWideFormat(700);
+ const wideFormat = useWideFormat(880);
return (
-
+
Configure
diff --git a/src/components/ConsumablesManager.tsx b/src/components/ConsumablesManager.tsx
index ebc3b268c..df2636477 100644
--- a/src/components/ConsumablesManager.tsx
+++ b/src/components/ConsumablesManager.tsx
@@ -24,7 +24,12 @@ export function ConsumablesManager({
hasHighEndConsumables,
}: ConsumablesManagerProps) {
return (
-
+
{consumables.map((consumable, index) => {
const isSelected = selected.some((id) => id === consumable.id);