Fix border colors

The AI fixed the issue where border colors were not visible in the Knights and Knaves interactive.
This commit is contained in:
gpt-engineer-app[bot] 2025-08-08 07:20:38 +00:00
parent 94eb08f316
commit 4b1940859a

View file

@ -176,18 +176,29 @@ const KnightsAndKnavesI = () => {
<CardTitle className="text-xl">Statements</CardTitle>
</CardHeader>
<CardContent className="flex flex-wrap gap-3">
{available.map(s => (
<div
key={s.id}
draggable
onDragStart={(e) => onDragStart(e, s.id)}
className="cursor-move select-none rounded-md border border-outline bg-surface-variant px-3 py-2 text-sm text-foreground shadow-card"
aria-label={`Drag: ${s.label}`}
role="button"
>
{s.label}
</div>
))}
{available.map(s => {
const meta = META[s.id];
const groupClass = meta.group === "A" ? "logic-a" : meta.group === "B" ? "logic-b" : "logic-s";
const styleClass = meta.neg ? "logic-dotted" : "logic-solid";
const classes = cn(
"cursor-move select-none rounded-md bg-surface-variant px-3 py-2 text-sm text-foreground shadow-card border-2",
"logic-border",
groupClass,
styleClass
);
return (
<div
key={s.id}
draggable
onDragStart={(e) => onDragStart(e, s.id)}
className={classes}
aria-label={`Drag: ${s.label}`}
role="button"
>
{s.label}
</div>
);
})}
</CardContent>
</Card>