diff --git a/src/app/(frontend)/map/page.tsx b/src/app/(frontend)/map/page.tsx index e95cfc5d..e396e0c4 100644 --- a/src/app/(frontend)/map/page.tsx +++ b/src/app/(frontend)/map/page.tsx @@ -1,10 +1,10 @@ import config from "@payload-config"; import { getPayload } from "payload"; -import { Fragment } from "react"; import Link from "next/link"; import type { Metadata } from "next"; import { Map as MapIcon, MapPinIcon } from "lucide-react"; import type { Campaign, Faction, Map as MapDoc, Media } from "@/payload-types"; +import { OverflowTooltip } from "@/components/frontend/map/OverflowTooltip"; import { easeStatClass, isWorldMapEntry, @@ -38,6 +38,13 @@ function tilePreviewUrls(template: string): string[] | null { ); } +interface ReadoutCell { + key: string; + value: string; + label: string; + cls?: string; +} + export default async function MapPickerPage() { const payload = await getPayload({ config: await config }); @@ -54,12 +61,15 @@ export default async function MapPickerPage() { return (
{map.name}
- - {map.worldSizeWidth}×{map.worldSizeHeight} m - + + {/* Legibility gradient */} + + + {/* Faint tactical grid texture (constant, never brightens) */} + + + {/* Classification strip */} + + + {/* Corner brackets */} + + + {/* Title block */} +- {campaign ? campaign.name : "Unit grid"} -
- {map.description && ( -- {map.description} -
- )} - {stats.length > 0 && ( -