I don't know the final design for this screen, but clearly the UI is broken here. @Bea, can you point me to the right design? Some thoughts:
- What happens when there is Cover Image?
- xLavapies or other newspapers won't be interested in having that Heading, what if we can make it go if the text is blank?
Solution
Home documents with a cover now give title-only headers bottom padding and a responsive overlap, keeping title descenders inside the white box and leaving the same 8px cover strip as child documents. A regression test was added.
Root cause: DocumentHeader always overlapped the cover by 120px, sized for a title-plus-byline header. Home documents use showByline={false}: the shorter header had no bottom padding, leaving its box 64px above the cover bottom at desktop width and allowing descenders to overflow.
Verification reported by T3: Reproduced twice on unmodified code (cc7c81748) in a local production web build with an isolated daemon and Playwright Chromium. After the fix, the home header ends 8px above the cover bottom at 1440, 900 and 390px widths. Child-document screenshots are byte-identical before and after. The new regression test failed before and passed after (16/16 header tests); the full UI suite passed (173 files, 1373 tests). UI, web and desktop typechecks and Prettier passed.
Verification limits: Local agent-ci was not run because Docker was unavailable. The original issue screenshot is from desktop; the shared header fix was exercised in the web app only, not Electron. Expected layout was inferred from child documents because the issue contained only a screenshot.
Before / After
Before, 1440px: home title box ends too high; the descender pokes past the box.
After, 1440px: bottom padding contains the title, and an 8px strip matches child documents.
Additional evidence
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime