feat: Wider post body, author and date above the text on the right, breadcrumb home icon on the menu's edge
Back to our planProblem
On a post page with a photo, three things look out of line (seen on the 2027 City budget post, desktop):
- The text and cards stop about 216 px short of the right margin, while the left menu has a 32 px margin. The page looks lopsided.
- The author and date sit on their own row under the photo, above the breadcrumb, lined up with nothing.
- The home icon of the breadcrumb starts a few pixels to the right of the left menu's edge.
Details: the post page caps the article text at the reading width (48rem, READING_COLUMN), so a wide card layout never reaches the right edge of its column. The author, date and source are the photo header's facts (postHeaderProps), placed in the header's own three-column grid. The home crumb is an icon-only link with 8 px of padding and a centred icon, so the icon is inset from the rail.
Proposed fix
- Wide body: a post or event whose text holds card blocks (key facts, fact tabs, outcome fork) fills its column, from the left menu's gap to the same 32 px margin the menu has on the left. A text-only article keeps the reading width, so long lines stay readable. One shared function decides this, used by both pages.
- Byline: a post's author, date and source move out of the photo header into the article column, as the first row above the text. On
lgand up the row is right-aligned, so its right edge matches the right edge of the body. On smaller screens it starts at the left. Events keep their facts in the header. - Breadcrumb: the home icon's visible edge sits on the same line as the left menu's edge at every width. The tap target keeps its size.
Acceptance criteria
- Not done: On a post with fact cards at 1280 px and 1920 px, the body's right edge is 32 px from the page edge, the same margin as the left menu.
- Not done: A post with only paragraphs and headings still stops at the reading width.
- Not done: A post's author, date and source show in one row directly above the body's first line, right-aligned from
lg, left-aligned below it. They no longer appear in the photo header. - Not done: An event page still shows its date, time and place in the header.
- Not done: The home icon's left edge matches the left menu's left edge at 320, 430, 768, 1024, 1280 and 1920 px, and the home link is still at least 44 px tall on a phone and 36 px from
lg. - Not done: No horizontal scroll or clipped text at the six widths, in light and dark themes.
- Not done: Tests cover the wide-body rule, the byline placement and the home crumb; the gallery and
docs/ui/component-set.mdare updated for the newArticlePagepart.
Area
frontend, styling, ux
Priority
medium
Files likely touched
src/platform/ui/ArticlePage.tsx, src/platform/ui/Breadcrumbs.tsx, src/platform/richtext/ (one new small file for the wide-body rule), src/app/(frontend)/posts/[slug]/page.tsx, src/app/(frontend)/events/[slug]/page.tsx, src/modules/news/ui/postHeader.tsx and tests, docs/ui/component-set.md.
Must not touch
The site header and navigation, theme tokens, the left rail's own layout (DetailLayout), the events header facts.
Decisions
- 2026-11-06, Claude in Chrome side panel (text): the owner asked for the wider body, the right-aligned author and date above it, and the home icon aligned with the left menu; he confirmed the plan above.
- Native first: this is layout and markup in our own components; Payload, Next.js and plugins offer nothing for it.
Generated by Claude Code, opens in a new tab