0018 — Portal page widths
Status: Accepted · Date: 2026-11-19
Context
Every portal page rendered through PageShell was capped at max-w-6xl
(72rem, 1152 px) and centred. The value arrived with a work-in-progress commit
and was never a recorded decision. On a 1920 px or 2560 px monitor the dense
pages — Users, History, Exercises, Insights, the live boards — left a third to
a half of the screen empty while their tables scrolled sideways. Pages that
needed more room had already escaped the cap one by one (max-w-[110rem] on
the video overlay, max-w-none on the Insights chart focus, max-w-[150rem]
in the session drawer tabs).
The established design systems size a page by its content, from a short list of named steps:
- Shopify Polaris Page: narrow, default, and full width; full width only where the content benefits, such as dense data views.
- Atlassian grid: fixed grids for reading pages; a fixed grid on information-dense pages truncates important content.
- IBM Carbon 2x grid: a default maximum of 1584 px, with a full-width modifier.
- SAP Fiori full screen: full width for large data sets, visualizations, and wide tables.
Decision
PageShelltakeswidth: "narrow" | "default" | "full"instead of a freemaxWidthclass.narrow— 72rem (the former cap): Settings, Account, Help, Devices, Notifications, the export and migration flows, the live session form, and the privilege gates.default— 99rem (1584 px, Carbon's maximum): the Dashboard, Insights (page, demo, lab, chart focus), Profiles, the Live Hub with its live view, demo, result, and video overlay, and the questionnaire service.full— no cap: the table pages Users, Exercises, History, Workouts, and Tags. The planner skipsPageShelland is uncapped as well.
- Every step is centred in the content area, header and body alike, so the title and the header actions stay aligned with the column beneath them.
- Only tables are uncapped. New pages pick a step by content: forms and
prose
narrow, everything elsedefault, a table pagefull. No page-specific width classes. - Chart pages are capped. The portal's charts have a fixed height
(
maintainAspectRatio: false, mostly 300 px), so without a cap a chart card on a 2560 px screen stretches to six or seven times its height. Within the cap, chart grids add columns by container width instead (Profiles: two from 64rem).
Consequences
- On screens wider than about 1500 px, tables and charts use the full content area; on laptops the change is small, because the area is close to 72rem already.
- On very wide screens the title of a
narrowordefaultpage starts further in than on afullpage; the step is chosen by content, so this offset is the same for every page of one kind. - Pages that skip
PageShell(planner, debug sandboxes) and the session drawer are unchanged.