@devries-cameron20 / t3code Mirror · read-only / commits / 484459f0a9
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 23, 19:15 UTC

fix(mobile): Keep the last line of iOS markdown replies visible (#15737)

Mike Olson committed Oct 4, 2026 at 17:09 UTC 484459f0a9633e56214a7cd35b790c96f94190b4
1 file changed +7
apps/mobile/modules/t3-markdown-text/ios/T3MarkdownText.mm
+7
@@ -311,6 +311,12 @@ T3MarkdownOutsideTapCoordinatorForWindow(UIWindow *window)
311 _textView.editable = false;
312 _textView.textContainerInset = UIEdgeInsetsZero;
313 _textView.textContainer.lineFragmentPadding = 0;
314 + // The shadow node already sized this view to fit every line. A container
315 + // that tracks the frame can come out a fraction of a point shorter after
316 + // pixel rounding, and TextKit then drops the last line. Size it by hand
317 + // with unbounded height and let the view's bounds clip.
318 + _textView.textContainer.widthTracksTextView = NO;
319 + _textView.textContainer.heightTracksTextView = NO;
320 _textView.delegate = self;
321 // Chat text supports selection and contextual actions, but not drag-and-drop.
322 _textView.textDragInteraction.enabled = NO;
@@ -477,6 +483,7 @@ T3MarkdownOutsideTapCoordinatorForWindow(UIWindow *window)
483 }
484 if (frameChanged) {
485 _textView.frame = _view.frame;
486 + _textView.textContainer.size = CGSizeMake(CGRectGetWidth(_view.frame), CGFLOAT_MAX);
487 }
488
489 // Text attachments have no native link element. Expose their existing runs