Skip to content
SprecherEast
Issue 1023

Article picture: a third on desktop, half on tablet, full width on phone, with enlarge

Back to our plan
Done
enhancementfrontendpriority: medium

Problem

In plain words: since #1015 the picture at the top of a post or event article fills the whole text width. On a laptop that is large: the picture takes most of the first screen and pushes the article down.

Summary of the owner's decision (2026-11-10, Claude Code session, voice, after a mockup on a live post): the article picture is about a third of the width on desktop, about half on a tablet, and the full width on a phone, with a way to enlarge it.

Proposed fix

  • The article's featured picture sits beside the start of the text and the text wraps around it: about a third of the article width from the desktop breakpoint, about half at tablet width, full width above the text on a phone. The picture is still shown whole, never cropped.
  • A reader can open the picture at full size (the same enlarge behaviour the article figure already has), so a picture that carries small text stays readable.
  • Native first, reuse first: the article figure in the rich text already floats at a third, wraps text and enlarges. Use or share that behaviour instead of writing a second one, and record on this issue what was reused.
  • Its place relative to the metadata bar (#1002) is decided in the build so the bar's line and the picture do not collide: the bar spans the content, the picture and text start under it.

Acceptance criteria

  • Not done: A test written first covers the three sizes by breakpoint, the enlarge control (keyboard and screen reader included) and the no-picture case (nothing drawn, no gap).
  • Not done: Checked at the six test widths, light and dark, on a post and an event, with a picture that carries text and with a photo: sizes as decided, text wraps cleanly with no orphaned short lines beside the picture, edges line up with the article column and the metadata bar, no sideways scroll.
  • Not done: Cards, link previews and the picture in the article body (figure block) are unchanged.
  • Not done: The notes, the component set and the image guideline say how the featured picture is sized and that it can be enlarged.
  • Not done: The owner sees phone, tablet and desktop captures before this merges.

Files likely touched

src/platform/ui/FeaturedImage.tsx, src/platform/ui/ArticlePage.tsx, the article figure in src/platform/richtext/ (to share its behaviour), their tests and gallery entries, src/platform/ui/README.md, docs/ui/component-set.md, docs/guidelines/images.md, docs/reference/

Must not touch

The metadata bar's design (#1002), cards, meta.image

Area

frontend

Priority

medium


Generated by Claude Code, opens in a new tab

See it on GitHub, opens in a new tab