GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(mobile): let markdown code blocks wrap long lines by Abdullah1738 · Pull Request #15877 · pingdotgg/t3code

Conversation

@Abdullah1738

@Abdullah1738 Abdullah1738 commented Oct 5, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Problem

On mobile, fenced code blocks in messages only scroll sideways. Long lines, like a drafted comment or a long command, get cut off at the screen edge and you have to swipe back and forth inside a small box to read them. Web already has a per-block wrap toggle in ChatMarkdown; mobile has no way to wrap.

Change

Code blocks get a wrap button next to the copy button. When it's on, the block renders the same highlighted text in a plain padded view instead of the horizontal ScrollView, so lines wrap to the bubble width. It's per block and starts off, and uses the same labels as web ("Wrap lines" / "Disable line wrap"). The icon is text.alignleft on iOS (same as the file viewer's word wrap menu) and wrap_text on Android.

Only NativeMarkdownBlock.tsx changes.

Scope and approval

Small parity fix: it brings the existing web code block wrap toggle to the mobile markdown renderer. No new setting, no shared state, nothing outside the code block component.

Verification

  • iOS Simulator (iPhone 17 Pro Max) and Android emulator (Android 14), T3 Code Dev against a local dev server: sent a message with a long single-line ts block. Before tapping, the line is clipped and scrolls horizontally. After tapping, it wraps across lines with highlighting intact. Tapping again goes back to scrolling. The copy button still works.
  • tsc --noEmit for apps/mobile, vp lint and vp fmt are clean.
  • Not checked on a physical Android device.
iOS before iOS after
Android before Android after

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Abdullah1738
fix(mobile): let markdown code blocks wrap long lines
e0fcbad
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Oct 5, 2026
@macroscopeapp

macroscopeapp Bot commented Oct 5, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at e0fcbad

Macroscope's review found this PR approvable — This one-file mobile markdown change adds a per-block line-wrap control while preserving horizontal scrolling by default. It reuses existing highlighting and copy behavior and introduces no schema, deployment, security, or static-analysis changes.

Notes:

  • Diff unchanged. Approvability was decided on eligibility alone.

You can add or adjust custom eligibility rules. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coderabbitai

coderabbitai Bot commented Oct 5, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: pingdotgg/t3code/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d36c733d-60dc-43d9-a9d8-26ca118f1c86
📥 Commits

Reviewing files that changed from the base of the PR and between a1d9d72 and e0fcbad.

📒 Files selected for processing (1)
  • apps/mobile/modules/t3-markdown-text/src/NativeMarkdownBlock.tsx

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

Walkthrough

Native code blocks now include a line-wrap toggle. Wrapped code appears in a padded view; unwrapped code remains in a horizontal scroll view. The toggle exposes its selected state to accessibility services and uses a platform-specific icon.

Changes

Native code wrapping

Layer / File(s) Summary
Wrapping control and layout
apps/mobile/modules/t3-markdown-text/src/NativeMarkdownBlock.tsx
NativeCodeBlock tracks wrapping, initially off. An accessible toggle changes the state and icon. Wrapped code renders in a padded View; unwrapped code renders in a horizontal ScrollView. Both layouts reuse the highlighted code element.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Feature

Merge Risk: ⚪ Minimal · up to e0fcb

The toggle adds selectable wrapping for mobile code blocks, and no concrete issue requiring a fix before merge was established.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly describes the main change: adding line wrapping to mobile Markdown code blocks.
Description check ✅ Passed The description covers the problem, change, scope, and focused verification. It explains why this small parity fix needs no prior approval and includes before-and-after screenshots for iOS and Android…
  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@maria-rcks

maria-rcks commented Oct 11, 2026

Copy link
Copy Markdown
Collaborator

Note

Written by claude-opus-5-5 on behalf of Maria

Hi! We are cleaning up open PRs, and this one does not say which model or harness was used to create it. If this change is really important, we recommend rebuilding the PR with a newer model and noting the model and harness in the PR description.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@maria-rcks maria-rcks closed this Oct 11, 2026
@maria-rcks

maria-rcks commented Oct 11, 2026

Copy link
Copy Markdown
Collaborator

Note

Written by claude-opus-5-5 on behalf of Maria

Reopening, this was closed by mistake. Sorry for the noise!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@maria-rcks maria-rcks reopened this Oct 11, 2026
@juliusmarminge juliusmarminge added the macroscope-review Opt PRs made by unvouched contributors in for Macroscope review. Vouched contributors auto-reviews label Oct 11, 2026 — with ChatGPT Codex Connector
macroscopeapp[bot]
macroscopeapp Bot approved these changes Oct 11, 2026
View reviewed changes
@juliusmarminge

juliusmarminge commented Oct 12, 2026

Copy link
Copy Markdown
Member

Note

Grok responding on behalf of Julius.

Closing as superseded by #16979, which replaced the mobile Markdown renderer with Enriched Markdown, so the NativeMarkdownBlock.tsx this PR changes no longer exists. A code-block wrap toggle would need to be rebuilt on top of Enriched; feel free to open a new PR against the new renderer if you want to pick it back up.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge closed this Oct 12, 2026
This was referenced Oct 13, 2026
feat: add a line wrap toggle to code block headers pingdotgg/enriched-markdown#1
Merged
feat(mobile): add a line wrap toggle to code blocks #19041
Closed
@Abdullah1738

Abdullah1738 commented Oct 13, 2026

Copy link
Copy Markdown
Contributor Author

Picked this back up on top of Enriched: #19041, with the native button in pingdotgg/enriched-markdown#1.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

macroscope-review Opt PRs made by unvouched contributors in for Macroscope review. Vouched contributors auto-reviews size:M 30-99 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@Abdullah1738 @maria-rcks @juliusmarminge
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.