Simplify chat input toolbar responsive behavior#298467
Merged
daviddossett merged 5 commits intomainfrom Mar 2, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR tweaks the chat input toolbar’s responsive behavior so dropdown action items (session/mode/model pickers) keep their text labels visible at narrower editor widths by lowering the “icons-only” threshold.
Changes:
- Adjusted the width breakpoint for
onlyShowIconsForDefaultActionsfrom 650px to 400px.
When the chat input is narrow (<250px), hide chevrons on mode, session target, model, and workspace pickers. Mode and session target pickers collapse to centered 22x22 icon-only buttons matching the add-context button size. Update actionMinWidth to 22 and toolbar gap to 4px.
src/vs/workbench/contrib/chat/browser/widget/input/chatInputPickerActionItem.ts
Show resolved
Hide resolved
dmitrivMS
approved these changes
Mar 1, 2026
DonJayamanne
pushed a commit
that referenced
this pull request
Mar 2, 2026
* Reduce chat input label hide threshold from 650 to 400 * Collapse chat input picker buttons to 22x22 icons at narrow widths When the chat input is narrow (<250px), hide chevrons on mode, session target, model, and workspace pickers. Mode and session target pickers collapse to centered 22x22 icon-only buttons matching the add-context button size. Update actionMinWidth to 22 and toolbar gap to 4px. * Simplify chat input toolbar responsive behavior * Apply initial hideChevrons state in render()
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.
Simplifies the chat input toolbar responsive behavior from three states down to two:
Expanded (width >= 400px): All items visible with labels and chevrons.
Collapsed (width < 400px):
:has()Changes
onlyShowIconsForDefaultActionsobservable — no intermediate "icons for defaults" statehideChevronsthreshold at 400px drives all collapsed behaviorCSS :has()instead of context key to avoid layout cascade/wigglejustify-content: centeron the codicon for perfect centering