diff --git a/src/app/globals.css b/src/app/globals.css index fa85766fc1..8044c72e74 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -310,6 +310,7 @@ /* Layout constraints */ --content-max-width: 1440px; --rail-width: 480px; + --content-width-catalogue: 76rem; /* Clinical White: true-neutral graphite-to-ash ramp (de-blued). */ --neutral-0: #ffffff; diff --git a/src/components/dictionary/dictionary-catalogue-pages.tsx b/src/components/dictionary/dictionary-catalogue-pages.tsx index 6ae8d32c89..4a6881051d 100644 --- a/src/components/dictionary/dictionary-catalogue-pages.tsx +++ b/src/components/dictionary/dictionary-catalogue-pages.tsx @@ -381,12 +381,12 @@ export function DictionaryCataloguePage() { id={modeHomeDesktopComposerSlotId} data-testid="dictionary-catalogue-composer" data-composer-reserve={modeHomeComposerReservePendingValue} - className="mode-home-composer-slot mx-auto hidden w-full max-w-[76rem] min-w-0 px-4 pt-3 sm:block sm:px-6 sm:pt-4 sm:min-h-0 sm:data-[composer-reserve=pending]:min-h-[var(--spacing-mode-home-composer-wide)] sm:[&:not(:empty)]:min-h-[var(--spacing-mode-home-composer-wide)]" + className="mode-home-composer-slot mx-auto hidden w-full max-w-[var(--content-width-catalogue)] min-w-0 px-4 pt-3 sm:block sm:px-6 sm:pt-4 sm:min-h-0 sm:data-[composer-reserve=pending]:min-h-[var(--spacing-mode-home-composer-wide)] sm:[&:not(:empty)]:min-h-[var(--spacing-mode-home-composer-wide)]" />

Dictionary catalogue

{/* The original Filter band stays on browse and search. Compact Terms / Abbreviations and A–Z sit underneath on the right. */} -
+
-
+
{hits.length ? (
-
+
{/* A `div`, not a `main`: `InformationPageShell` already renders the route's `
`, and a nested one is a duplicate landmark. */}
@@ -850,7 +853,7 @@ export function DictionaryTopicDetailPage({ topicSlug }: { topicSlug: string }) } /> -
+

{topic.title} diff --git a/src/components/dictionary/dictionary-sources-page.tsx b/src/components/dictionary/dictionary-sources-page.tsx index 82b7863388..ce18bf57ab 100644 --- a/src/components/dictionary/dictionary-sources-page.tsx +++ b/src/components/dictionary/dictionary-sources-page.tsx @@ -94,7 +94,7 @@ export function DictionarySourcesPage() { return ( -
+

Dictionary governance diff --git a/src/components/differentials/diagnosis-map-panel.tsx b/src/components/differentials/diagnosis-map-panel.tsx index 4563525efe..2c924a8330 100644 --- a/src/components/differentials/diagnosis-map-panel.tsx +++ b/src/components/differentials/diagnosis-map-panel.tsx @@ -997,7 +997,7 @@ export function DiagnosisMapPanel({ description={`${record.title} · ${record.related.length} related differential${record.related.length === 1 ? "" : "s"}`} closeLabel="Close diagnosis map" mobilePlacement="fullscreen" - contentClassName="lg:max-w-[76rem]" + contentClassName="lg:max-w-[var(--content-width-catalogue)]" headerClassName="pt-[max(1rem,env(safe-area-inset-top))] lg:pt-5" bodyClassName="p-0 overflow-y-auto lg:overflow-hidden" portal