Page banner cuts through the picture: use the picture's focal point
Back to our planProblem
In plain words: on a post or event page the picture is used as a wide banner behind the title, and the banner always shows the middle band of the picture. For the illustrations with a fact panel (#1000) that band cuts through the panel's text, so the top of each page shows chopped, oversized words. It happens at every width and is worse on a phone.
Checked on the live site (2026-11-10): the banner image is object-fit: cover at object-position: 50% 50%. Changing the picture's focal point in the CMS (Payload stores focalX and focalY on every upload) did not move the banner, so the banner ignores it. Cards are not affected: they show the whole picture.
Proposed fix
- The banner positions its picture at the upload's focal point (Payload's native
focalX/focalY), through the shared page header andMediacomponent, with the centre as the default. - Then set the focal point of each illustration on its scene, so the banner shows the drawing and not the panel.
- Native first: this uses a field Payload already stores; no new field.
Acceptance criteria
- Not done: A test fails on the current code and passes with the fix: a picture with a focal point renders its banner at that position; one without stays centred.
- Not done: Checked at the six test widths, light and dark, on a post and an event that use a panel illustration: no cut-off text in the banner.
- Not done: The focal points of the panel illustrations are set (CMS), and the cards still show the whole picture.
- Not done: The note for the page header and the image guideline say that a panel illustration needs its focal point set on the scene.
Files likely touched
src/platform/ui/ (page header, Media), src/modules/news/, src/modules/events/ (mappers that pass the picture), src/platform/ui/README.md, docs/guidelines/images.md, docs/reference/
Must not touch
None
Area
frontend
Priority
high
Generated by Claude Code, opens in a new tab