1
0
Fork 0

fix(ui): unify remaining page caps to 96rem and repair story xl cap

Raise the centered operations, supply-boxes, campaigns, factions and
missions wrappers from max-w-7xl to the same max-w-[96rem] used by the
logistics detail pages so all capped pages share one width.

The story page used xl:max-w-screen-2xl, a utility Tailwind v4 removed,
so that override silently did nothing; swap it for xl:max-w-[96rem],
which restores the intended wider gutter layout on xl screens.
This commit is contained in:
Jason Fraley 2026-10-19 10:52:04 -04:00
parent 9f05351798
commit c149f07347
11 changed files with 15 additions and 15 deletions

View file

@ -207,7 +207,7 @@ export default async function CampaignDetailPage({ params }: CampaignDetailPageP
</div> </div>
</header> </header>
<div className="p-5 flex flex-col gap-6 max-w-7xl mx-auto w-full"> <div className="p-5 flex flex-col gap-6 max-w-[96rem] mx-auto w-full">
<div className="grid grid-cols-1 xl:grid-cols-3 gap-6"> <div className="grid grid-cols-1 xl:grid-cols-3 gap-6">
{/* ── Main Content (2/3) ──────────────────────────── */} {/* ── Main Content (2/3) ──────────────────────────── */}
<div className="xl:col-span-2 flex flex-col gap-6"> <div className="xl:col-span-2 flex flex-col gap-6">

View file

@ -223,7 +223,7 @@ export default async function FactionDetailPage({ params }: FactionDetailPagePro
</div> </div>
</header> </header>
<div className="p-5 flex flex-col gap-6 max-w-7xl mx-auto w-full"> <div className="p-5 flex flex-col gap-6 max-w-[96rem] mx-auto w-full">
<div className="grid grid-cols-1 xl:grid-cols-3 gap-6"> <div className="grid grid-cols-1 xl:grid-cols-3 gap-6">
{/* ── Main Content (2/3) ──────────────────────────── */} {/* ── Main Content (2/3) ──────────────────────────── */}
<div className="xl:col-span-2 flex flex-col gap-6"> <div className="xl:col-span-2 flex flex-col gap-6">

View file

@ -355,7 +355,7 @@ export default async function MissionDetailPage({ params }: MissionDetailPagePro
<div className="absolute inset-0 bg-gradient-to-r from-black/30 via-transparent to-black/40" /> <div className="absolute inset-0 bg-gradient-to-r from-black/30 via-transparent to-black/40" />
<div className="relative z-10 mt-auto flex flex-col px-5 pb-6 pt-14 md:absolute md:inset-0 md:justify-end md:px-10 md:py-10 lg:px-12"> <div className="relative z-10 mt-auto flex flex-col px-5 pb-6 pt-14 md:absolute md:inset-0 md:justify-end md:px-10 md:py-10 lg:px-12">
<div className="mx-auto flex w-full max-w-7xl flex-col"> <div className="mx-auto flex w-full max-w-[96rem] flex-col">
<div className="z-20 mb-4 flex flex-wrap gap-2 md:absolute md:top-4 md:right-4 md:mb-0"> <div className="z-20 mb-4 flex flex-wrap gap-2 md:absolute md:top-4 md:right-4 md:mb-0">
<span <span
className={`rounded-md border border-white/10 px-2 py-1 text-[10px] font-semibold uppercase tracking-wider backdrop-blur-sm ${statusColors[mission.ownershipAndStatus.status] ?? "bg-muted text-muted-foreground"}`} className={`rounded-md border border-white/10 px-2 py-1 text-[10px] font-semibold uppercase tracking-wider backdrop-blur-sm ${statusColors[mission.ownershipAndStatus.status] ?? "bg-muted text-muted-foreground"}`}
@ -455,7 +455,7 @@ export default async function MissionDetailPage({ params }: MissionDetailPagePro
</div> </div>
</header> </header>
<div className="p-5 flex flex-col gap-6 max-w-7xl mx-auto w-full"> <div className="p-5 flex flex-col gap-6 max-w-[96rem] mx-auto w-full">
{planningMapEnabled && canDelegate && ( {planningMapEnabled && canDelegate && (
<PlanningAccessControl <PlanningAccessControl
missionId={mission.id} missionId={mission.id}

View file

@ -136,7 +136,7 @@ export default async function SupplyBoxDetailPage({ params }: { params: Promise<
if (capability === false) { if (capability === false) {
return ( return (
<div className="mx-auto flex w-full max-w-7xl flex-col gap-6 px-4 py-6"> <div className="mx-auto flex w-full max-w-[96rem] flex-col gap-6 px-4 py-6">
<PageShell title="Supply Box" meta="LOGISTICS // CRATE SYNC"> <PageShell title="Supply Box" meta="LOGISTICS // CRATE SYNC">
<NoticeState <NoticeState
variant="error" variant="error"
@ -150,7 +150,7 @@ export default async function SupplyBoxDetailPage({ params }: { params: Promise<
if (box === null) { if (box === null) {
return ( return (
<div className="mx-auto flex w-full max-w-7xl flex-col gap-6 px-4 py-6"> <div className="mx-auto flex w-full max-w-[96rem] flex-col gap-6 px-4 py-6">
<PageShell title="Supply Box" meta="LOGISTICS // CRATE SYNC"> <PageShell title="Supply Box" meta="LOGISTICS // CRATE SYNC">
<NoticeState <NoticeState
variant="error" variant="error"
@ -186,7 +186,7 @@ export default async function SupplyBoxDetailPage({ params }: { params: Promise<
]; ];
return ( return (
<div className="mx-auto flex w-full max-w-7xl flex-col gap-6 px-4 py-6"> <div className="mx-auto flex w-full max-w-[96rem] flex-col gap-6 px-4 py-6">
<PageShell title={box.boxId} meta="SUPPLY BOX // DETAIL"> <PageShell title={box.boxId} meta="SUPPLY BOX // DETAIL">
<Link <Link
href="/logistics/supply-boxes" href="/logistics/supply-boxes"

View file

@ -148,7 +148,7 @@ export default async function SupplyBoxesPage() {
const data = await getSupplyBoxList(payload, surfaceUser); const data = await getSupplyBoxList(payload, surfaceUser);
return ( return (
<div className="mx-auto flex w-full max-w-7xl flex-col gap-6 px-4 py-6"> <div className="mx-auto flex w-full max-w-[96rem] flex-col gap-6 px-4 py-6">
<PageShell title="Supply Boxes" meta="LOGISTICS // CRATE SYNC"> <PageShell title="Supply Boxes" meta="LOGISTICS // CRATE SYNC">
<p className="max-w-2xl text-sm text-white/70"> <p className="max-w-2xl text-sm text-white/70">
Crate inventory synced from the game server through the Arma bridge. Rows show the newest Crate inventory synced from the game server through the Arma bridge. Rows show the newest

View file

@ -49,7 +49,7 @@ export default async function OperationAarPage({
: []; : [];
return ( return (
<div className="mx-auto flex w-full max-w-7xl flex-col gap-6 px-4 py-6"> <div className="mx-auto flex w-full max-w-[96rem] flex-col gap-6 px-4 py-6">
<OperationsRealtimeRefresher /> <OperationsRealtimeRefresher />
<PageShell title={`Operation ${operationId}`} meta="AFTER-ACTION REPORT // PROVENANCE LINKED"> <PageShell title={`Operation ${operationId}`} meta="AFTER-ACTION REPORT // PROVENANCE LINKED">
{aar === null ? ( {aar === null ? (

View file

@ -50,7 +50,7 @@ export default async function OperationsLedgerPage({
); );
return ( return (
<div className="mx-auto flex w-full max-w-7xl flex-col gap-6 px-4 py-6"> <div className="mx-auto flex w-full max-w-[96rem] flex-col gap-6 px-4 py-6">
<OperationsRealtimeRefresher /> <OperationsRealtimeRefresher />
<PageShell <PageShell
title="Operations ledger" title="Operations ledger"

View file

@ -30,7 +30,7 @@ export default async function OperationsPage() {
const overview = await getOperationOverview(payload, surfaceUser); const overview = await getOperationOverview(payload, surfaceUser);
return ( return (
<div className="mx-auto flex w-full max-w-7xl flex-col gap-6 px-4 py-6"> <div className="mx-auto flex w-full max-w-[96rem] flex-col gap-6 px-4 py-6">
<OperationsRealtimeRefresher /> <OperationsRealtimeRefresher />
<PageShell title="Operations" meta="OPERATION FEED // AFTER-ACTION RECORDS" dataTour="page-header"> <PageShell title="Operations" meta="OPERATION FEED // AFTER-ACTION RECORDS" dataTour="page-header">
<p className="max-w-2xl text-sm text-white/70"> <p className="max-w-2xl text-sm text-white/70">

View file

@ -88,7 +88,7 @@ export default async function ReservationDetailPage({
if (reservation === null) { if (reservation === null) {
return ( return (
<div className="mx-auto flex w-full max-w-7xl flex-col gap-6 px-4 py-6"> <div className="mx-auto flex w-full max-w-[96rem] flex-col gap-6 px-4 py-6">
<PageShell title="Reservation" meta="ALLOCATION RESERVATIONS // COMMAND VIEW"> <PageShell title="Reservation" meta="ALLOCATION RESERVATIONS // COMMAND VIEW">
<NoticeState <NoticeState
variant="error" variant="error"
@ -121,7 +121,7 @@ export default async function ReservationDetailPage({
]; ];
return ( return (
<div className="mx-auto flex w-full max-w-7xl flex-col gap-6 px-4 py-6"> <div className="mx-auto flex w-full max-w-[96rem] flex-col gap-6 px-4 py-6">
<PageShell title={reservation.reservationKey} meta="RESERVATION // DETAIL"> <PageShell title={reservation.reservationKey} meta="RESERVATION // DETAIL">
<Link <Link
href="/operations/reservations" href="/operations/reservations"

View file

@ -110,7 +110,7 @@ export default async function ReservationsPage({
const options = canCreate && user ? await listReservationOptions(payload, user) : null; const options = canCreate && user ? await listReservationOptions(payload, user) : null;
return ( return (
<div className="mx-auto flex w-full max-w-7xl flex-col gap-6 px-4 py-6"> <div className="mx-auto flex w-full max-w-[96rem] flex-col gap-6 px-4 py-6">
<PageShell title="Reservations" meta="ALLOCATION RESERVATIONS // COMMAND VIEW"> <PageShell title="Reservations" meta="ALLOCATION RESERVATIONS // COMMAND VIEW">
<p className="max-w-2xl text-sm text-white/70"> <p className="max-w-2xl text-sm text-white/70">
Every allocation of people, vehicles, cargo, and treasury budget against an operation, Every allocation of people, vehicles, cargo, and treasury budget against an operation,

View file

@ -109,7 +109,7 @@ export default async function StoryPage() {
})); }));
return ( return (
<div className="mx-auto max-w-3xl px-4 py-10 xl:max-w-screen-2xl"> <div className="mx-auto max-w-3xl px-4 py-10 xl:max-w-[96rem]">
<div className="xl:grid xl:grid-cols-[minmax(0,1fr)_minmax(0,48rem)_minmax(0,1fr)] xl:gap-8"> <div className="xl:grid xl:grid-cols-[minmax(0,1fr)_minmax(0,48rem)_minmax(0,1fr)] xl:gap-8">
<div className="min-w-0 xl:col-start-2"> <div className="min-w-0 xl:col-start-2">
<header className="mb-12 text-center"> <header className="mb-12 text-center">