1
0
Fork 0

fix(frontend): remove doubled corner chrome from threat assessment card

The card rendered its own border, grid texture and corner brackets on top
of the TacticalFrame's, so its bottom brackets coincided with the frame's
and read as a heavier, doubled corner. Both the empty-state and populated
branches now drop that redundant chrome and let the frame own the border,
brackets and texture.
This commit is contained in:
Jason Fraley 2026-11-02 13:06:30 -05:00
parent d279720376
commit 9db57a465c

View file

@ -237,25 +237,8 @@ export function MissionThreatAssessment({
return (
<section
aria-label="Threat Assessment"
className="relative overflow-hidden rounded-none border border-border/70 bg-card"
className="relative overflow-hidden rounded-none bg-card"
>
{/* Faint grid texture: constant opacity, never brightens. */}
<div
aria-hidden="true"
className="pointer-events-none absolute inset-0 z-[1] opacity-[0.04]"
style={{
backgroundImage:
"linear-gradient(to right, white 1px, transparent 1px), linear-gradient(to bottom, white 1px, transparent 1px)",
backgroundSize: "28px 28px",
}}
/>
{/* Corner brackets. */}
<div aria-hidden="true" className="pointer-events-none absolute inset-2 z-30">
<span className="absolute left-0 top-0 size-3 border-l border-t border-white/25" />
<span className="absolute right-0 top-0 size-3 border-r border-t border-white/25" />
<span className="absolute bottom-0 left-0 size-3 border-b border-l border-white/25" />
<span className="absolute bottom-0 right-0 size-3 border-b border-r border-white/25" />
</div>
{/* Placeholder body when no analyst estimate has been entered. */}
<div className="relative z-10 flex min-h-[10rem] flex-col items-center justify-center gap-2 px-6 py-10 text-center">
<BinocularsIcon aria-hidden="true" className="size-6 text-white/20" />
@ -273,27 +256,8 @@ export function MissionThreatAssessment({
return (
<section
aria-label="Threat Assessment"
className="relative overflow-hidden rounded-none border border-border/70 bg-card"
className="relative overflow-hidden rounded-none bg-card"
>
{/* Faint grid texture: constant opacity, never brightens. */}
<div
aria-hidden="true"
className="pointer-events-none absolute inset-0 z-[1] opacity-[0.04]"
style={{
backgroundImage:
"linear-gradient(to right, white 1px, transparent 1px), linear-gradient(to bottom, white 1px, transparent 1px)",
backgroundSize: "28px 28px",
}}
/>
{/* Corner brackets. */}
<div aria-hidden="true" className="pointer-events-none absolute inset-2 z-30">
<span className="absolute left-0 top-0 size-3 border-l border-t border-white/25" />
<span className="absolute right-0 top-0 size-3 border-r border-t border-white/25" />
<span className="absolute bottom-0 left-0 size-3 border-b border-l border-white/25" />
<span className="absolute bottom-0 right-0 size-3 border-b border-r border-white/25" />
</div>
{/* Likelihood rows. */}
<table className="relative z-10 w-full border-collapse text-sm">
<caption className="sr-only">