Skip to content

fix(session-ui): prevent variant select overlap on mobile - #42833

Open
Xieweikang123 wants to merge 1 commit into
anomalyco:devfrom
Xieweikang123:fix-variant-overlap
Open

fix(session-ui): prevent variant select overlap on mobile#42833
Xieweikang123 wants to merge 1 commit into
anomalyco:devfrom
Xieweikang123:fix-variant-overlap

Conversation

@Xieweikang123

@Xieweikang123 Xieweikang123 commented Aug 16, 2026

Copy link
Copy Markdown

Issue for this PR

Closes #42834

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

On mobile/narrow viewports (320-390px), the reasoning-effort (variant) select in the v2 prompt input overlapped the send button, making the "thinking strength" option unclickable.

In the prompt-input DockTray, the attach/model/variant selects live inside a flex min-w-0 flex-1 container. Their wrapping TooltipV2/menu layers defaulted to min-width: auto, so they could not shrink. On narrow screens the variant select overflowed onto the fixed send button (which sits outside the flex container) and was visually hidden/covered.

3 small class changes in packages/session-ui/src/v2/components/prompt-input/index.tsx:

  • Add [&>*]:min-w-0 to the tray's flex container so every direct child can shrink
  • Add min-w-0 to the PromptInputV2Select tooltip wrapper
  • Add min-w-0 to the select trigger button (complements existing max-w-[220px])

How did you verify your code works?

Verified at 320/360/375/390px widths: no overlap; model select shrinks (220→~177px) and variant select stays fully visible.

Screenshots / recordings

If this is a UI change, please include a screenshot or recording.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions

Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. and removed needs:issue needs:compliance This means the issue will auto-close after 2 hours. labels Aug 16, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

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.

Mobile: reasoning-effort (variant) select overlaps the send button in prompt input

1 participant