From cf0a1dd1abe6262fde034a4eb98aa33af8b93bdb Mon Sep 17 00:00:00 2001 From: tresabhi <43380238+tresabhi@users.noreply.github.com> Date: Wed, 11 Nov 2026 23:08:04 -0600 Subject: [PATCH] research costs --- .../src/components/Button/index.module.css | 2 +- .../components/Discriminator/index.module.css | 18 +++++++++--- .../src/components/Discriminator/index.tsx | 3 ++ .../TankopediaLoadout/index.module.css | 29 +++++++++++++++++++ .../components/TankopediaLoadout/index.tsx | 26 +++++++++-------- 5 files changed, 61 insertions(+), 17 deletions(-) diff --git a/packages/website/src/components/Button/index.module.css b/packages/website/src/components/Button/index.module.css index 3dbfe4819..672ac5716 100644 --- a/packages/website/src/components/Button/index.module.css +++ b/packages/website/src/components/Button/index.module.css @@ -88,7 +88,7 @@ &[data-variant="surface"], &[data-variant="soft"] { - background-color: var(--accent-a3); + background-color: var(--accent-4); color: var(--gray-12); } diff --git a/packages/website/src/components/Discriminator/index.module.css b/packages/website/src/components/Discriminator/index.module.css index 7578ab6ed..733d6fdb1 100644 --- a/packages/website/src/components/Discriminator/index.module.css +++ b/packages/website/src/components/Discriminator/index.module.css @@ -1,4 +1,10 @@ .discriminator { + --inset: var(--space-3); + + &[data-inset="small"] { + --inset: var(--space-2); + } + position: absolute; font-size: var(--font-size-minor); @@ -8,23 +14,27 @@ white-space: nowrap; + display: flex; + align-items: center; + gap: var(--space-1); + &[data-corner="top-right"], &[data-corner="bottom-right"] { - right: var(--space-3); + right: var(--inset); } &[data-corner="top-left"], &[data-corner="bottom-left"] { - right: var(--space-3); + left: var(--inset); } &[data-corner="top-left"], &[data-corner="top-right"] { - top: var(--space-3); + top: var(--inset); } &[data-corner="bottom-left"], &[data-corner="bottom-right"] { - bottom: var(--space-3); + bottom: var(--inset); } } diff --git a/packages/website/src/components/Discriminator/index.tsx b/packages/website/src/components/Discriminator/index.tsx index 8238e8570..cce985487 100644 --- a/packages/website/src/components/Discriminator/index.tsx +++ b/packages/website/src/components/Discriminator/index.tsx @@ -4,16 +4,19 @@ import styles from "./index.module.css"; interface DiscriminatorProps extends ComponentProps<"span"> { corner?: `${"bottom" | "top"}-${"left" | "right"}`; + inset?: "small" | "regular"; } /** Small label overlaid on the right edge of a `position: relative` parent */ export function Discriminator({ className, corner = "bottom-right", + inset = "regular", ...props }: DiscriminatorProps) { return ( { if (isTank) return; @@ -350,18 +352,6 @@ function ModuleNode({ unlock, module, tooltip }: ModuleNodeProps) { }); }} > - {romanize(module.tier)} - - {/* {unlock.cost!.value > 0 && ( - - {formatCompact(locale, unlock.cost!.value)} - {unlock.cost!.type} - - )} */} - {tooltip} + + {romanize(module.tier)} + + {unlock.cost!.value > 0 && ( +
+ {formatCompact(locale, unlock.cost!.value)} + {unlock.cost!.type} +
+ )} );