fix(dashboard): drop the mission widget header row
The Operations // Last Mission widget carried a header row whose left side repeated the mission code name already shown on the card below, and after that duplication was removed the row held only a lone right-aligned "View all" link floating in an empty band. Remove the row entirely: the frame strip names the section and the mission card carries its own "View details" affordance.
This commit is contained in:
parent
3b3bba5d54
commit
9bfe43ad71
1 changed files with 3 additions and 17 deletions
|
|
@ -1,5 +1,3 @@
|
||||||
import Link from "next/link";
|
|
||||||
import { CrosshairIcon } from "lucide-react";
|
|
||||||
import {
|
import {
|
||||||
MissionCard,
|
MissionCard,
|
||||||
type MissionCardProps,
|
type MissionCardProps,
|
||||||
|
|
@ -17,21 +15,9 @@ export function MissionBriefing({ mission, heading = "Next Mission" }: MissionBr
|
||||||
classification={`Operations // ${heading}`}
|
classification={`Operations // ${heading}`}
|
||||||
refCode={mission ? `REF ${refCodeFrom(mission.id)}` : undefined}
|
refCode={mission ? `REF ${refCodeFrom(mission.id)}` : undefined}
|
||||||
>
|
>
|
||||||
<div className="flex items-center justify-between gap-2 px-4 pt-3">
|
{/* No separate header row: the frame strip names the section and the
|
||||||
<div className="flex min-w-0 items-center gap-2">
|
mission card carries its own "View details" affordance. */}
|
||||||
<CrosshairIcon className="size-4 shrink-0 text-muted-foreground" />
|
<div className="p-4">
|
||||||
<span className="truncate font-mono text-xs uppercase tracking-widest text-muted-foreground">
|
|
||||||
{mission?.codeName ?? "Standby"}
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<Link
|
|
||||||
href="/intelligence/missions"
|
|
||||||
className="shrink-0 py-1 text-xs text-muted-foreground transition-colors hover:text-primary"
|
|
||||||
>
|
|
||||||
View all
|
|
||||||
</Link>
|
|
||||||
</div>
|
|
||||||
<div className="p-4 pt-3">
|
|
||||||
{mission ? (
|
{mission ? (
|
||||||
<MissionCard mission={mission} showFullDetails />
|
<MissionCard mission={mission} showFullDetails />
|
||||||
) : (
|
) : (
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue