Skip to content

Conversation

@athal7
Copy link
Contributor

@athal7 athal7 commented Feb 1, 2026

Summary

Fixes mobile layout for prompt input button bar where buttons overflow or clip on narrow viewports (320-375px).

Changes:

  • Use tighter gap spacing on mobile (gap-1 vs gap-2 on desktop)
  • Add shrink-0 to prevent buttons from compressing
  • Add min-w-0 to left section to allow proper flex shrinking
  • Hide text labels on mobile for model and thinking selectors (icons only)
  • Remove absolute positioning from right button group

Tested at 320px (iPhone SE) and 375px (iPhone 12/13/14) viewports.

Screenshots

image
image
image
image
image

Fixes #11613

Partially addresses:

@github-actions
Copy link
Contributor

github-actions bot commented Feb 1, 2026

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@athal7 athal7 marked this pull request as ready for review February 1, 2026 13:17
@athal7 athal7 requested a review from adamdotdevin as a code owner February 1, 2026 13:17
opencode-agent bot added a commit that referenced this pull request Feb 1, 2026
@athal7 athal7 marked this pull request as draft February 1, 2026 13:19
@athal7 athal7 force-pushed the fix/mobile-prompt-input-buttons branch from 5fb8165 to 178bfc2 Compare February 1, 2026 13:22
@athal7 athal7 marked this pull request as ready for review February 1, 2026 13:32
opencode-agent bot added a commit that referenced this pull request Feb 1, 2026
opencode-agent bot added a commit that referenced this pull request Feb 1, 2026
@adamdotdevin
Copy link
Contributor

@athal7 please add screenshots

@athal7
Copy link
Contributor Author

athal7 commented Feb 1, 2026

@adamdotdevin Sorry they got overwritten when I tagged more issues. Added back now

opencode-agent bot added a commit that referenced this pull request Feb 1, 2026
opencode-agent bot added a commit that referenced this pull request Feb 1, 2026
opencode-agent bot added a commit that referenced this pull request Feb 1, 2026
opencode-agent bot added a commit that referenced this pull request Feb 1, 2026
opencode-agent bot added a commit that referenced this pull request Feb 1, 2026
opencode-agent bot added a commit that referenced this pull request Feb 1, 2026
@athal7 athal7 force-pushed the fix/mobile-prompt-input-buttons branch from 178bfc2 to 7265fd3 Compare February 2, 2026 02:25
@athal7
Copy link
Contributor Author

athal7 commented Feb 2, 2026

Updated with a simpler approach that works with the current upstream/dev (post-#11675 UI refresh).

Changes:

  • Tighter gap spacing on mobile (gap-1 vs gap-2)
  • shrink-0 on buttons to prevent compression
  • Hide text labels on mobile for model/thinking selectors (icons only)
  • Remove absolute positioning from send button group

This avoids modifying the Select component or changing the thinking variant from Button to Select dropdown - just CSS/class tweaks.

Screenshots have been updated.

Typecheck failure is from upstream

- Use tighter gap spacing on mobile (gap-1 vs gap-2 on desktop)
- Add shrink-0 to prevent buttons from compressing
- Add min-w-0 to left section to allow proper flex shrinking
- Hide text labels on mobile for model and thinking selectors
- Remove absolute positioning from right button group

Tested at 320px (iPhone SE) and 375px (iPhone) viewports.

Fixes anomalyco#11613
@athal7 athal7 force-pushed the fix/mobile-prompt-input-buttons branch from 7265fd3 to 2ec1ec3 Compare February 2, 2026 04:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: Mobile prompt input buttons overflow on narrow viewports

2 participants