Skip to content

mobile: adjust context menu and toolbar positions/sizes.#312475

Merged
rebornix merged 2 commits intomainfrom
rebornix/southern-pinniped
Apr 25, 2026
Merged

mobile: adjust context menu and toolbar positions/sizes.#312475
rebornix merged 2 commits intomainfrom
rebornix/southern-pinniped

Conversation

@rebornix
Copy link
Copy Markdown
Member

The phone-layout touch-target rule applied min-width/min-height 44px to every .action-item > .action-label to hit Apple's touch target minimum. In the chat input toolbar (Local / Auto / agent / model / tools / send) that stretched buttons to 50px tall while adjacent dropdown labels stayed at 22px, producing a huge hover background and an unbalanced row.

Add .chat-input-toolbars to the exclusion list alongside the quick pick widget. Items now render at their natural ~22px size matching the input bar.

Verified in iPhone 14 Pro emulation: hover on "Auto" now shows a tight 52x22 background instead of 52x50.

The previous mobile quick pick override forced the widget into a
full-width bottom sheet. That worked for standalone command-palette
style flows but broke pickers triggered from the chat input toolbar
(e.g. Configure Tools), which felt jarringly modal and detached from
the trigger.

Drop the position override and just expand the width to use the
viewport with 8px safe-area gutters. The picker stays anchored to its
trigger but no longer truncates titles, descriptions or the filter
input. Touch targets in the list bumped to 44px.

Also remove the matching mobile context menu bottom-sheet rule which
caused the same disconnected-from-trigger feel.
The phone-layout touch-target rule applied min-width/min-height 44px
to every `.action-item > .action-label` to hit Apple's touch target
minimum. In the chat input toolbar (Local / Auto / agent / model /
tools / send) that stretched buttons to 50px tall while adjacent
dropdown labels stayed at 22px, producing a huge hover background
and an unbalanced row.

Add `.chat-input-toolbars` to the exclusion list alongside the
quick pick widget. Items now render at their natural ~22px size
matching the input bar.

Verified in iPhone 14 Pro emulation: hover on "Auto" now shows a
tight 52x22 background instead of 52x50.
Copilot AI review requested due to automatic review settings April 25, 2026 02:08
@rebornix rebornix self-assigned this Apr 25, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adjusts phone-layout CSS in the Agents/Sessions workbench to better balance touch target sizing and mobile picker/menu presentation.

Changes:

  • Excludes .chat-input-toolbars (and quick pick toolbars) from the global 44px minimum touch-target sizing rule.
  • Updates phone-layout quick pick sizing/width behavior (viewport-gutter style instead of fixed bottom-sheet rules).
  • Removes the phone-layout “Mobile Context Menus” bottom action-sheet CSS rules.
Show a summary per file
File Description
src/vs/sessions/browser/media/style.css Tweaks phone-layout touch sizing exceptions and revises quick pick / context menu mobile layout CSS.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 2

Comment thread src/vs/sessions/browser/media/style.css
Comment thread src/vs/sessions/browser/media/style.css
@rebornix rebornix marked this pull request as ready for review April 25, 2026 02:48
@rebornix rebornix merged commit 64e2c15 into main Apr 25, 2026
30 checks passed
@rebornix rebornix deleted the rebornix/southern-pinniped branch April 25, 2026 05:13
@vs-code-engineering vs-code-engineering Bot added this to the 1.118.0 milestone Apr 25, 2026
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.

3 participants