1
0
Fork 0

fix(ui): center and widen left-aligned detail pages

Structure, vehicle, resource, shipment, banking, profile and awards
pages capped content at max-w-7xl pinned to the left edge, so all
slack pooled on the right on wide monitors (worse with the sidebar
hidden). Raise the cap to 96rem and center it, matching the existing
mx-auto convention on operations and intelligence pages.
This commit is contained in:
Jason Fraley 2026-10-19 10:50:35 -04:00
parent ce682becec
commit 9f05351798
8 changed files with 8 additions and 8 deletions

View file

@ -130,7 +130,7 @@ export default async function AwardsPage() {
}
return (
<div className="p-5 flex flex-col gap-6 max-w-7xl">
<div className="p-5 flex flex-col gap-6 mx-auto w-full max-w-[96rem]">
<div className="flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between">
<div className="flex flex-col gap-1.5" data-tour="page-header">
<div className="flex items-center gap-2">

View file

@ -74,7 +74,7 @@ export default async function AccountPage({ params }: AccountPageProps) {
const currencyConfig = await getCurrencyConfig(payload);
return (
<div className="p-5 max-w-7xl">
<div className="p-5 mx-auto w-full max-w-[96rem]">
<AccountDetail
account={typedAccount}
ledger={ledger}

View file

@ -69,7 +69,7 @@ export default async function GameVehicleDetailPage({ params }: GameVehicleDetai
const resourceCount = storedResources.length;
return (
<div className="p-5 flex flex-col gap-6 max-w-7xl">
<div className="p-5 flex flex-col gap-6 mx-auto w-full max-w-[96rem]">
<Link
href="/logistics/garage"
className="py-1 text-sm text-muted-foreground hover:text-primary transition-colors flex items-center gap-1 w-fit"

View file

@ -106,7 +106,7 @@ export default async function ResourceDetailPage({ params }: ResourceDetailPageP
];
return (
<div className="p-5 flex flex-col gap-6 max-w-7xl">
<div className="p-5 flex flex-col gap-6 mx-auto w-full max-w-[96rem]">
<Link
href="/logistics/resources"
className="py-1 text-sm text-muted-foreground hover:text-primary transition-colors flex items-center gap-1 w-fit"

View file

@ -95,7 +95,7 @@ export default async function ShipmentDetailPage({ params }: ShipmentDetailPageP
shipment.fuelCost > 0 ? ((shipment.fuelConsumed ?? 0) / shipment.fuelCost) * 100 : 0;
return (
<div className="p-5 flex flex-col gap-6 max-w-7xl">
<div className="p-5 flex flex-col gap-6 mx-auto w-full max-w-[96rem]">
<Link
href="/logistics/shipments"
className="py-1 text-sm text-muted-foreground hover:text-primary transition-colors flex items-center gap-1 w-fit"

View file

@ -319,7 +319,7 @@ export default async function StructureDetailPage({ params }: StructureDetailPag
});
return (
<div className="p-5 flex flex-col gap-6 max-w-7xl">
<div className="p-5 flex flex-col gap-6 mx-auto w-full max-w-[96rem]">
<header
className={`relative flex flex-col gap-3 overflow-hidden rounded-lg${
imageUrl ? " min-h-[280px] justify-between border border-border p-5" : ""

View file

@ -85,7 +85,7 @@ export default async function VehicleDetailPage({ params }: VehicleDetailPagePro
) ?? [];
return (
<div className="p-5 flex flex-col gap-6 max-w-7xl">
<div className="p-5 flex flex-col gap-6 mx-auto w-full max-w-[96rem]">
<Link
href="/logistics/vehicles"
className="py-1 text-sm text-muted-foreground hover:text-primary transition-colors flex items-center gap-1 w-fit"

View file

@ -466,7 +466,7 @@ export default async function ProfilePage({ params }: ProfilePageProps) {
: `${remainingMonths} mo`;
return (
<div className="p-5 flex flex-col gap-6 max-w-7xl">
<div className="p-5 flex flex-col gap-6 mx-auto w-full max-w-[96rem]">
<Link
href="/"
className="py-1 text-sm text-muted-foreground hover:text-primary transition-colors flex items-center gap-1 w-fit"