recover a bunch of stats from legacy, fix enhanced armor in sandbox, add game's module layout from the upgrade screen, a bunch of toys from legacy

This commit is contained in:
tresabhi committed 2026-11-11 22:43:47 -06:00
1 parent cc0284e2ec
commit 6bef735aea
36 files changed
+2416 -582

No files matched your search

@@ -1,11 +1,30 @@
.discriminator {
position: absolute;
right: var(--space-3);
font-size: var(--font-size-minor);
text-align: right;
pointer-events: none;
top: 50%;
white-space: nowrap;
&[data-corner="top-right"],
&[data-corner="bottom-right"] {
right: var(--space-3);
}
&[data-corner="top-left"],
&[data-corner="bottom-left"] {
right: var(--space-3);
}
&[data-corner="top-left"],
&[data-corner="top-right"] {
top: var(--space-3);
}
&[data-corner="bottom-left"],
&[data-corner="bottom-right"] {
bottom: var(--space-3);
}
}
@@ -2,12 +2,21 @@ import type { ComponentProps } from "react";
import { classNames } from "../../ui/classNames";
import styles from "./index.module.css";
interface DiscriminatorProps extends ComponentProps<"span"> {
corner?: `${"bottom" | "top"}-${"left" | "right"}`;
}
/** Small label overlaid on the right edge of a `position: relative` parent */
export function Discriminator({
className,
corner = "bottom-right",
...props
}: ComponentProps<"span">) {
}: DiscriminatorProps) {
return (
<span className={classNames(styles.discriminator, className)} {...props} />
<span
data-corner={corner}
className={classNames(styles.discriminator, className)}
{...props}
/>
);
}