Repository navigation
fix(mobile): keep the attach button left in the composer toolbar - #489
Merged
Merged
Conversation
Pin Attach outside the right-aligned model and effort scroll area. Disable horizontal bounce and keep the trailing gap outside scroll content so only real overflow can scroll. Fixes: #464
This was referenced Nov 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The mobile composer placed Attach next to the model pills after #464 right-aligned the whole scroll container. The same container allowed iOS horizontal bounce even when its contents fit.
Attach now has its own non-shrinking slot at the left edge, outside the pill scroll area. Model and effort retain content-sized widths, their 4 dp gap, and right alignment next to the existing reserved Send slot. Content/viewport changes restore the scroll area's trailing edge so overflowing pills grow leftwards. Shell mode still replaces the controls with its notice. New-thread and existing/side-thread composers share the fix; bot chat retains Attach before its inline text field and has no model pills. The mobile documentation describes the layout.
The scroll area disables both
alwaysBounceHorizontalandbounces. The existing single-line, 140 dp label cap truncates long names first; genuinely overflowing pills remain scrollable on narrow screens or with larger text. The trailing 4 dp gap is outside the scroll content, preventing padding from creating artificial overflow. This avoids extra measurement state and keeps Attach and Send independent of catalog/skeleton widths. Extracted the props interface to keep the shared composer below the function-size limit.Fixes: #464
Verification
bun install,bun run format,bun run typecheck,bun run lint,bun run format:check, andgit diff --check. No UI tests added or run.ComposerBoxcall site: new thread, thread screen (including side threads), and bot chat. The side-thread creation sheet uses its own task field; opened side threads use the shared thread screen. Reviewed cold skeletons, short/long model labels, missing effort, shell notices, attachment rows, and the split Send reservation by source/layout reasoning.bunx [email protected] fingerprint:generate --platform <ios|android> --build-profile production --json --non-interactivebefore and after. Unchanged iOS:6ddec9ef559ee0095ac33e94ff9418a942053b17; Android:5f6eae3ab278f1cd543e9ed763f923a319b65ec9. No native dependencies, configuration, or assets changed.Copy audit (§8): no UI text or accessible labels changed; existing truncation and labels remain. No new actions or terminology.