GeezerVison is showing github.com — fix(mobile): Android captioned images no longer cover the text after them by shivamhwp · Pull Request #19918 · pingdotgg/t3code
Conversation
shivamhwp
commented
Oct 15, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Closes #19914
Problem
On Android phones with a non-whole display scale (for example 2.8125x, density 450), a captioned markdown image drew over the text after it. The message footer landed on the caption, and later paragraphs and images were cut off. User bubbles ended early the same way.
Yoga lays the markdown view out up to 2px wider than the width it measured at. React measures each image slot at the wider width. The native media slot only trusted a measured height within 0.5dp of the requested width, so it threw the real height away, sized the message from a 16:9 placeholder, and still drew the real image.
Fix
Bump the Enriched Markdown fork archive to 1.2.0-t3.12. Its only source change is pingdotgg/enriched-markdown#4 by @voida6: the media slot accepts a measured height within 0.5dp plus 2px of the measured width. A real width change (rotation, resize) still drops the old height.
The archive is built from shivamhwp/enriched-markdown@d6c901e, which is #4's commit plus the version bump. I can't push to pingdotgg/enriched-markdown. Once #4 lands on fork/t3-mobile, the archive can be repacked from there if you want t3-fork.json to point at that branch. The packed contents are the same.
The tarball differs from t3.11 only in DocumentAssets.kt, MediaSlotView.kt, package.json and t3-fork.json.
iOS has the same 0.5pt check in ENRMMediaSlotHeight, and Yoga rounds measured nodes outward there too. With fractional padding at 3x (for example a right-aligned bubble), the gap can pass 0.5pt. That's an existing iOS problem I can't test here, so this PR only changes Android. The iOS fix would be the same scale-aware tolerance in the fork.
Evidence
POCO F4, density 450 (Developer options > Smallest width 384dp), test thread with two captioned 400x700 images.
Before: assistant message (main) |
Before: user bubble (main) |
 |
 |
| The footer sits on the caption, and the paragraph and second image after it are cut off. |
The bubble ends early and its image spills over the reply below. |
At the phone's default density (440, 2.75x) the same thread renders correctly, which matches the report.
After: still needed. This PR comes from a fork, so the EAS Preview job skips (no EXPO_TOKEN) and there's no preview APK to test yet. Corex can't build Android. I'll add the after screenshots from a build that includes this change.
🤖 Generated with Claude Code
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…them
Bump the Enriched Markdown fork to 1.2.0-t3.12. On Android, Yoga snaps the
markdown view up to 2px wider than the width it measured at, and the media
slot threw away the measured image height over that gap. The document was
then sized from a 16:9 placeholder while the real image was drawn, so the
caption, later blocks and the message footer overlapped.
The fork now accepts measured heights within 0.5dp plus 2px of the
measured width.
Closes pingdotgg#19914
Co-authored-by: ravdeep kainth <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Approvability
Verdict: Approved at 1c0dab4
Macroscope's review found this PR approvable — This replaces the mobile markdown archive with a focused Android layout fix that preserves existing behavior except for the documented pixel-rounding mismatch, with a regression test covering the case. The accompanying manifest, lockfile, and build-permission changes only keep the vendored dependency consistent.
Notes:
- All code in this push has already been reviewed. Approvability was decided on eligibility alone.
You can add or adjust custom eligibility rules. Learn more.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Oct 15, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
-
⚙️ Run configuration
-
- Configuration used: Path: .coderabbit.config.ts
- Review profile: CHILL
- Plan: Advanced
- Run ID:
c49c2ce4-671f-4454-80cf-580e0bb85ab5
📥 Commits
-
Reviewing files that changed from the base of the PR and between 42da166 and 1c0dab4.
⛔ Files ignored due to path filters: 1
-
pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing: 4
-
apps/mobile/deps/react-native-enriched-markdown-1.2.0-t3.11.tgz
apps/mobile/deps/react-native-enriched-markdown-1.2.0-t3.12.tgz
apps/mobile/package.json
pnpm-workspace.yaml
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
📝 Walkthrough
-
The mobile app now uses react-native-enriched-markdown tarball version 1.2.0-t3.12. The workspace build permission references the same version.
Changes: Markdown package update
| Layer / File(s) |
Summary |
Update package and build permission apps/mobile/package.json, pnpm-workspace.yaml |
The mobile dependency and workspace build permission now reference react-native-enriched-markdown version 1.2.0-t3.12. |
Priority: ➖ Normal
Estimated code review effort: 2 (Simple) | ~5 minutes
Change: Bug fix · Severity of issue fixed: Medium
Suggested reviewers: juliusmarminge
Merge Risk: ⚪ Minimal · up to 1c0da
-
The update includes the Android layout-tolerance change, and the dependency, lockfile, and build permission agree. No material merge risk remains.
### Architecture Summary
Architecture risk: 🔵 Low · up to 1c0da
The change affects 2 systems.
Changed systems: apps/mobile, pnpm-workspace.yaml
Architecture concerns
No architecture-level concerns identified.
Review details
-
Systems and components
- observed — apps/mobile (service) was modified; 1 changed file maps to changed impact.
- observed — pnpm-workspace.yaml (service) was modified; 1 changed file maps to changed impact.
Before / after behavior
- observed — Modified behavior in apps/mobile/package.json: Updated the
react-native-enriched-markdown dependency tarball from 1.2.0-t3.11 to 1.2.0-t3.12.
- observed — Modified behavior in pnpm-workspace.yaml: The allowed build entry switches from the
1.2.0-t3.11 tarball to 1.2.0-t3.12.
Pre-merge checks: 3 · 1
-
Failed checks: 1 warning
| Check name |
Status |
Explanation |
Resolution |
| Description check |
 |
The description explains the problem, root cause, proposed fix, issue reference, and before-state evidence. It does not provide the required Change, Scope and approval, and Verification sections, and … |
Add the required Change, Scope and approval, and Verification sections. Include the after screenshots from a build containing the change, describe the focused test steps and observed results, and state any remaining limitations. |
Passed checks: 3 passed
-
| Check name |
Status |
Explanation |
| Linked Issues check |
 |
Issue #19914 requires Android captioned images and following content to remain ordered, with the footer below the content. The PR updates react-native-enriched-markdown from 1.2.0-t3.11 to `1.2.0-… |
| Out of Scope Changes check |
 |
The changed dependency reference and the matching pnpm-workspace.yaml allowBuilds entry support the Enriched Markdown archive update. The described archive changes implement the Android media-slot… |
| Title check |
 |
The title clearly and concisely describes the Android rendering fix for captioned images overlapping following text. |
Full details: Description check
-
Explanation
The description explains the problem, root cause, proposed fix, issue reference, and before-state evidence. It does not provide the required Change, Scope and approval, and Verification sections, and it explicitly lacks after screenshots or equivalent verification results for this UI change.
- Fix all pre-merge checks with AI
✨ Finishing Touches: 💡 1
-
🛠️ Fix failing CI checks: 💡
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|