Skip to content

fix(mobile): keep the attach button left in the composer toolbar - #489

Merged
nixuuu merged 1 commit into
devfrom
fix/mobile-composer-toolbar
Nov 10, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/mobile-composer-toolbar

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 10, 2026

Copy link
Copy Markdown
Member

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 alwaysBounceHorizontal and bounces. 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

  • Passed bun install, bun run format, bun run typecheck, bun run lint, bun run format:check, and git diff --check. No UI tests added or run.
  • Reviewed every ComposerBox call 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.
  • Ran bunx [email protected] fingerprint:generate --platform <ios|android> --build-profile production --json --non-interactive before and after. Unchanged iOS: 6ddec9ef559ee0095ac33e94ff9418a942053b17; Android: 5f6eae3ab278f1cd543e9ed763f923a319b65ec9. No native dependencies, configuration, or assets changed.
  • No native device was available. Native visuals, scroll gestures, and large Dynamic Type at 320 dp were not runtime-verified. Expo web is explicitly unsupported by this app; no web compatibility dependencies or target were added. Source inspection of the web composer found a separate attachment control and a flexible right-aligned model group, without the mobile scroll container issue; no web files changed. Broader integration tests, web build, prebuild, and bundle exports were not run under the task's verification restrictions.

Copy audit (§8): no UI text or accessible labels changed; existing truncation and labels remain. No new actions or terminology.

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
@nixuuu
nixuuu merged commit 33aafe8 into dev Nov 10, 2026
9 checks passed
@nixuuu
nixuuu deleted the fix/mobile-composer-toolbar branch November 10, 2026 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant