Add compact icon styling and className option for action lists#320395
Merged
Conversation
…ate action icons to compact variants Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
Contributor
There was a problem hiding this comment.
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?: stringtoIActionListOptionsand apply it to the action list container. - Introduce CSS rules for
.compact-iconsaction 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-iconsstyling.
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. |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
dbaeumer
approved these changes
Jun 8, 2026
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.
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:
classNameproperty to theIActionListOptionsinterface, allowing consumers to specify custom CSS classes for the action list container. (src/vs/platform/actionWidget/browser/actionList.ts, src/vs/platform/actionWidget/browser/actionList.tsR531-R535)ActionListWidgetto apply any providedclassNamevalues to the DOM node, enabling scoped styling for different action lists. (src/vs/platform/actionWidget/browser/actionList.ts, src/vs/platform/actionWidget/browser/actionList.tsR599-R604)Compact Icon Styling:
.compact-icons, reducing the size of leading row icons in compact lists while ensuring toolbar and submenu icons retain their standard size. (src/vs/platform/actionWidget/browser/actionWidget.css, src/vs/platform/actionWidget/browser/actionWidget.cssR142-R156)compact-iconsclass, activating the new compact icon styling. (src/vs/sessions/contrib/chat/browser/runScriptAction.ts, src/vs/sessions/contrib/chat/browser/runScriptAction.tsR578)Icon Variant Updates:
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]