Skip to content

Fix(Android): Removed text clipping in prompt input box when showing placeholder text - #6552

Closed
juccul wants to merge 3 commits into
pingdotgg:mainfrom
juccul:main
Closed

juccul wants to merge 3 commits into
pingdotgg:mainfrom
juccul:main

Conversation

@juccul

@juccul juccul commented Aug 13, 2026

Copy link
Copy Markdown

What Changed

Changed prompt composer placeholder text to display as single line on android

Why

The placeholder text in the prompt composer, was showing as multiple lines which caused text to clip due to the container's fixed height.

UI Changes

Before:

Screenshot_20260813_221026_T3 Code

After:

Screenshot_20260814_012925_T3 Code Dev

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes

Note

Low Risk
Small Android-only layout tweak in the native composer view; no auth, data, or shared API changes.

Overview
Fixes Android prompt composer placeholder clipping when the field is collapsed (singleLineCentered).

setSingleLineCentered already switched vertical gravity; it now also sets maxLines to 1 and ellipsize to END while centered, and restores unlimited lines with no ellipsize when expanded. Long placeholder copy stays on one line with an ellipsis instead of wrapping inside the fixed-height pill.

No JS or prop contract changes—the existing singleLineCentered={!isExpanded} usage in ThreadComposer and NewTaskDraftScreen picks up the behavior.

Reviewed by Cursor Bugbot for commit a603a6a. Bugbot is set up for automated code reviews on this repo. Configure here.

Note

Fix text clipping in Android prompt input box placeholder by restricting centered editor to single line

When the editor is in centered mode, T3ComposerEditorView.setCentered now sets maxLines = 1 and ellipsize = TextUtils.TruncateAt.END to prevent placeholder text from being clipped. When not centered, maxLines is reset to Int.MAX_VALUE and ellipsize is cleared.

Macroscope summarized 75ad990.

juccul added 2 commits August 14, 2026 01:37
Truncated text on prompt container to one line. This avoids text cutting off on android
@coderabbitai

coderabbitai Bot commented Aug 13, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 9da28ae8-8b4d-4304-8f3d-f3892ff6ac1c

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@github-actions github-actions Bot added vouch:unvouched PR author is not yet trusted in the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Aug 13, 2026

@CDVolvik CDVolvik left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

setSingleLineCentered on main only flips gravity. A single-line centered EditText will still wrap/clip the hint without maxLines = 1 and ellipsize = END. Those two lines are the usual Android fix for the placeholder getting cut.

I do not have an Android emulator in this session, so this is a source read, not a device repro. Title uses Fix(Android): — merged PRs here are fix(scope):.

@t3-code

t3-code Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

closing as an exact patch duplicate of #5052. Keeping #5052, which already has approval.

@t3-code t3-code Bot closed this Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS 0-9 changed lines (additions + deletions). vouch:unvouched PR author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants