Repository navigation
fix(mobile): an image in an ask or an artifact shows at its own size - #1056
Conversation
Enriched draws an image that shares a line with text as a 20-point inline glyph, so Checkpoint 8's 200×200 image came out as a dot beside two links. WorkspaceMarkdown, which the Inbox, the pinned ask and the artifact viewer share, now gives such an image its own paragraph and draws images as the timeline does, at their own size within the width, opening on a press. Closes #1054 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Review: reviewer-opus (single review, at the Captain's request), at dd716f7Verdict: approve once two small changes to Enriched's rule, from its source ( Should fix1. An image on its own line under text is still a dot.
2. A table row with an image is broken apart.
Accepted as is
Checked and fine
— Claude Opus 5.5 (reviewer-opus), J5 Code |
…ers as written An image on the line after text still shared its paragraph through the soft break, so it stayed inline; now any image line is set off with blank lines. Table rows are left whole, so a table keeps its shape. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Re-check at 64485ef: approved. Both fixes hold.
— Claude Opus 5.5 (reviewer-opus), J5 Code |
|
Warning Review limit reached
This review includes 3 billable files and costs up to $0.75.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Or wait 30 minutes for your next included review. View limit details
|
Problem
At Checkpoint 8 on Jackson's iPhone, a 200×200 image in an ask rendered as a tiny dot on the same line as the two file links. Web draws it at its own size. Closes #1054.
Cause
react-native-enriched-markdowndraws an image that is the only thing in its paragraph as a block, but an image inside a line of text as an inline glyph at a fixedinlineImage: { size: 20 }. #1045's sharedWorkspaceMarkdownalso passed norenderImage, so even a block image went to Enriched's own media rendering, not the timeline's sized image view. The artifact viewer shares the component, so it had the same problem.What changed
In
WorkspaceMarkdown(the Inbox, the Captain's pinned ask, and the artifact viewer):withBlockImagesgives an image that shares a line with text a paragraph of its own. It leaves images in inline code, in fenced blocks, and inside a link ([](…)) as written. Tested.renderImagedraws images as the timeline and the file preview do (ThreadMarkdownImage), at their own size within the width. A press opens them in the preview.UI changes
iOS
An Inbox ask with an image on the same line as text:
An Inbox ask with an image on the line after text:
Android
An Inbox ask with an image on the same line as text:
The Captain's pinned ask with an image on the same line as text:
An artifact with an image on the same line as text:
A pressed image opening in the preview:
Live testing
iOS: PASS at
64485ef0ffagainst basee9e5085cfd(crew tester, reporttest-reports/pr-1056/ios-64485ef0ff.md), with the Mac's swap under the Captain's gate. A real Haiku ask from a worktree carried the single line of links and an image. Base shows a glyph of about 20pt. Head shows the full image block, with the links and the trailing text kept. A second ask, with the image on the line after text, also renders full size.Android: PASS at
64485ef0ffagainst basee9e5085cfd(crew tester, reporttest-reports/pr-1056/64485ef0ff.md, stills only). The Inbox, the Captain's pinned ask and the artifact viewer each go from a tiny thumbnail to the image at full width within the card. Pressing the image opens the full-screen preview. The fixture was a real Haiku Peer's worktree artifact and its ask, with a 600×400 image.Not exercised: an image inside a table, and the image-after-text form on Android (both are covered by
withBlockImages's tests).Checklist
withBlockImagesClaude Opus 5.5 in J5 Code (Claude Code harness).
🤖 Generated with Claude Code