Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(mobile): iOS composer text stays vertically aligned at every text size #17855

Mergedakbarakma(GitHub profile, opens in a new tab)merged 4 commits intomain fromrefs/pull/17855/headmerged by juliusmarminge View on GitHub

At nondefault text sizes, the collapsed iOS composer text drifts vertically inside its fixed-height pill. Adjust its vertical inset by the scaled DM Sans lowercase midline relative to the default body text. The default 16pt inset stays at 6pt; expanded and Android editor paths keep zero inset.

Original implementation and iOS investigation by @akbarakma in #17855. Main was merged while retaining contributor history; the conflict only involved a removed neighboring comment.

Verification on headless Linux:

  • Existing appearance, native theme and editor revision suites: 46 tests pass across 3 files.
  • PR-specific tests: 0 → 0. Node cannot verify UIKit glyph placement; no formula-mirroring or static component tests were added.
  • Mobile typecheck and formatting pass. Targeted lint exits successfully with two warnings in unchanged code.
  • Independent full-diff reviews: Claude Opus 5.5 and GPT-6-Sol, round 1, no code blockers.

Contributor iOS simulator evidence at 22pt, inspected and retained. These captures predate the main merge and were not recaptured here:

Before:

Before: iOS composer text sits low at 22pt

After:

After: iOS composer text aligns within the pill at 22pt

Native device access is disabled in this environment. A human still needs to verify iOS text and placeholder alignment and clipping at 11pt, 12pt, 16pt and 22pt (12pt has a 37pt total line box in the 36pt collapsed field), plus iPad and Android behavior. No macOS, Windows or Electron desktop verification was run. This affects the shared mobile composer only; no contract, provider, transport or documentation changes.

Maintainer takeover: GPT-6-Astra (tests), GPT-6.1-Sol (implementation), Claude Opus 5.5 and GPT-6-Sol (reviews), through T3 Code delegation and the Codex harness.

    1. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    2. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Approvability

      Verdict: Approved at 0022014

      Macroscope's review found this PR approvable — This is a narrowly scoped iOS presentation fix that recalculates only the collapsed composer’s text inset for non-default text sizes while preserving default, expanded, and Android behavior. It introduces no schema, infrastructure, security, billing, or static-analysis changes.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    3. coderabbitai[bot](GitHub profile, opens in a new tab)commented
      Review in Change Stack →

      Warning

      Review limit reached

      Only developers with an assigned seat can use this organization's usage-based review budget, and seats here are assigned manually. Ask an admin to assign a seat, or change the review continuation mode in Billing.

      Next included review available in 30 seconds.

      Check out review usage here.

      View limit details

      Limit details: You’ve used all 10 included reviews currently available.

      Learn how review limits work.

      Review configuration:

      ⚙️ Run configuration
      • Configuration used: Path: .coderabbit.config.ts
      • Review profile: CHILL
      • Plan: Advanced
      • Run ID: 5547da1e-b7b2-4589-918f-c57aa2bfebb2
      📥 Commits

      Reviewing files that changed from the base of the PR and between 21776af72699e0f61a20482630dce67d578cd6f2 and 5be5cff898f77622630800fd00c1fcef6e2809b9.

      📒 Files selected for processing: 1
      • apps/mobile/src/features/threads/ThreadComposer.tsx

      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: 07bdc8df-150d-42fa-92d3-ebcb55912850
      📥 Commits

      Reviewing files that changed from the base of the PR and between a11f464133291122e0f6381b35e1b245d0aa9c73 and 21776af72699e0f61a20482630dce67d578cd6f2.

      📒 Files selected for processing (1)
      • apps/mobile/src/features/threads/ThreadComposer.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

      ThreadComposer now calculates the collapsed iOS editor’s vertical inset from scaled body-text metrics. Expanded editors and Android layouts continue to use a zero inset.

      Changes: Thread Composer Inset

      Layer / File(s)Summary
      Calculate and apply the collapsed editor inset
      apps/mobile/src/features/threads/ThreadComposer.tsx
      The composer calculates a rounded, non-negative inset relative to the base body text role. The collapsed iOS editor uses this value instead of a fixed 6-point inset. Expanded editors and Android layouts continue to use zero.

      Priority: ⬇️ Low

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

      Change: Bug fix

      Suggested reviewers: juliusmarminge

      Merge Risk: ⚪ Minimal · up to 21776

      The collapsed iOS composer keeps text near the pill’s center across supported text sizes, with the default placement preserved. No merge-blocking issue is established.

      Pre-merge checks: Passed 3 · Failed 1
      Failed Failed checks: 1 warning
      Check nameStatusExplanationResolution
      Description checkWarningThe description explains the problem, implementation, verification results, screenshots, limitations, and agent usage. It does not provide the required scope and approval information: the linked PR is…Add a Scope and approval section that links the triaged bug or an approval discussion with the maintainer approval comment. If no prior approval exists, explain why this is an obvious, focused bug fix that qualifies for the exemption.
      Passed Passed checks: 3 passed
      Check nameStatusExplanation
      Linked Issues checkPassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes checkPassedCheck skipped because no linked issues were found for this pull request.
      Title checkPassedThe title clearly and concisely identifies the mobile iOS text-alignment fix.
      Full details: Description check

      Explanation

      The description explains the problem, implementation, verification results, screenshots, limitations, and agent usage. It does not provide the required scope and approval information: the linked PR is not a triaged issue or explicit maintainer approval, and it does not explain why this focused fix qualifies without one.

      Resolution

      Add a Scope and approval section that links the triaged bug or an approval discussion with the maintainer approval comment. If no prior approval exists, explain why this is an obvious, focused bug fix that qualifies for the exemption.

      ✨ Finishing Touches
      🧪 Generate unit tests (beta)
      • Create a new PR
      • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
      Comment `@coderabbitai help` to get the list of available commands.
    4. juliusmarminge added labelsmacroscope-review

    5. juliusmarminge assignedjuliusmarminge

    6. Taking over this one as maintainer for batch composer-chat-03. I’ll preserve the original PR and author credit, resolve main conflicts, and finish focused verification and independent review. No merge in this pass.

    7. juliusmarminge merged thisd6c67ce

    8. juliusmarminge closed this

Sign in to join this conversation.