Skip to content

Agents: Truncate chat input placeholder in narrow views#312337

Merged
mrleemurray merged 3 commits intomainfrom
mrleemurray/chief-scarlet-mite
Apr 24, 2026
Merged

Agents: Truncate chat input placeholder in narrow views#312337
mrleemurray merged 3 commits intomainfrom
mrleemurray/chief-scarlet-mite

Conversation

@mrleemurray
Copy link
Copy Markdown
Contributor

Improve the chat input placeholder truncation logic to display an ellipsis in narrow views, preventing overflow. This enhances the user experience by ensuring the placeholder remains visible and properly formatted.

mrleemurray and others added 2 commits April 24, 2026 13:11
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
Copilot AI review requested due to automatic review settings April 24, 2026 12:18
@mrleemurray mrleemurray enabled auto-merge (squash) April 24, 2026 12:18
@mrleemurray mrleemurray self-assigned this Apr 24, 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

Updates the chat widget styling to truncate the Monaco-rendered placeholder text with an ellipsis in narrow layouts, preventing the placeholder from visually overflowing the input.

Changes:

  • Add container query sizing to the chat editor container to support width-based truncation.
  • Apply ellipsis truncation rules to Monaco .view-line elements that contain the placeholder decoration.

Comment thread src/vs/workbench/contrib/chat/browser/widget/media/chat.css Outdated
Comment thread src/vs/workbench/contrib/chat/browser/widget/media/chat.css Outdated
Comment thread src/vs/workbench/contrib/chat/browser/widget/media/chat.css Outdated
Comment thread src/vs/workbench/contrib/chat/browser/widget/media/chat.css Outdated
…iews

Co-authored-by: Copilot <copilot@github.com>
@mrleemurray mrleemurray merged commit 29396e6 into main Apr 24, 2026
40 of 41 checks passed
@mrleemurray mrleemurray deleted the mrleemurray/chief-scarlet-mite branch April 24, 2026 14:53
@vs-code-engineering vs-code-engineering Bot added this to the 1.118.0 milestone Apr 24, 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