Skip to content

Add compact icon styling and className option for action lists#320395

Merged
mrleemurray merged 3 commits into
mainfrom
mrleemurray/conventional-silver-sailfish
Jun 8, 2026
Merged

Add compact icon styling and className option for action lists#320395
mrleemurray merged 3 commits into
mainfrom
mrleemurray/conventional-silver-sailfish

Conversation

@mrleemurray
Copy link
Copy Markdown
Contributor

@mrleemurray mrleemurray commented Jun 8, 2026

This pull request introduces improvements to the action list widget and refines the appearance and behavior of icons in the "Run Script" chat session UI. The main changes include support for custom CSS classes in the action list, new compact icon styling, and updates to use compact icon variants in relevant actions.

Action List Widget Enhancements:

Compact Icon Styling:

Icon Variant Updates:

  • Switched several action icons in the "Run Script" chat UI to their compact variants (Codicon.addCompact, Codicon.sparkleCompact, Codicon.windowCompact) for a more streamlined appearance in compact lists. (src/vs/sessions/contrib/chat/browser/runScriptAction.ts, [1] [2] [3]

mrleemurray and others added 2 commits June 8, 2026 12:04
…ate action icons to compact variants

Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
Copilot AI review requested due to automatic review settings June 8, 2026 11:08
@mrleemurray mrleemurray enabled auto-merge (squash) June 8, 2026 11:08
@mrleemurray mrleemurray self-assigned this Jun 8, 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

This PR adds a scoped styling mechanism for action lists by introducing an optional className on IActionListOptions, then uses it to apply compact-icon styling for the Sessions “Run Script” dropdown by switching several actions to Codicon.*Compact variants.

Changes:

  • Add className?: string to IActionListOptions and apply it to the action list container.
  • Introduce CSS rules for .compact-icons action lists to size leading-row codicons using the compact codicon font-size variable.
  • Update Sessions run-script dropdown actions to use compact codicons and opt into the new .compact-icons styling.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/vs/sessions/contrib/chat/browser/runScriptAction.ts Applies listOptions.className = 'compact-icons' and switches several dropdown action icons to compact codicons.
src/vs/platform/actionWidget/browser/actionWidget.css Adds .compact-icons-scoped rules for codicon sizing in action list rows.
src/vs/platform/actionWidget/browser/actionList.ts Extends IActionListOptions with className and applies it to the action list root element.

Comment thread src/vs/platform/actionWidget/browser/actionList.ts
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@mrleemurray mrleemurray merged commit a82beb7 into main Jun 8, 2026
39 of 40 checks passed
@mrleemurray mrleemurray deleted the mrleemurray/conventional-silver-sailfish branch June 8, 2026 15:59
@vs-code-engineering vs-code-engineering Bot added this to the 1.125.0 milestone Jun 8, 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