Skip to content

debug: right-align toolbar actions in exception widget - #325077

Merged
Connor Peet (connor4312) merged 2 commits into
microsoft:mainfrom
myselfsiddharth:fix/exception-widget-toolbar-alignment
Jul 9, 2026
Merged

Connor Peet (connor4312) merged 2 commits into
microsoft:mainfrom
myselfsiddharth:fix/exception-widget-toolbar-alignment

Conversation

@myselfsiddharth

Copy link
Copy Markdown
Contributor

Fixes #324471

Summary

The Copy and Close toolbar buttons in the exception peek view were rendered immediately after the "Exception has occurred" title text instead of at the right edge of the widget.

The .title .actions container already grows to fill the title row with flex: 1, but the action bar's .actions-container inside it is a full-width flex row that left-aligns its items by default. This change sets justify-content: flex-end on that container so the buttons are pushed to the right edge of the peek view.

Testing

  • Started a Node.js debug session with an uncaught exception and verified the exception peek view in a running build:
    • Before: 0px gap between the title label and the first button, 275px of empty space to the right of the buttons
    • After: buttons sit at the right edge of the widget (10px from the edge), title stays on the left
  • Description, stack trace, and link behavior are unchanged

Screenshot comparison is in the comment below.

)

Co-authored-by: Cursor <cursoragent@cursor.com>
Copilot AI review requested due to automatic review settings July 9, 2026 05:51
@myselfsiddharth

Copy link
Copy Markdown
Contributor Author

After the fix, with the Copy and Close buttons right-aligned in the exception peek view:

Exception peek view with toolbar actions right-aligned

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 fixes issue #324471, where the Copy and Close toolbar buttons in the debug exception peek view were left-aligned next to the title text instead of at the right edge of the widget. It adds a scoped CSS rule setting justify-content: flex-end on the action bar's .actions-container, which is a full-width flex row that otherwise left-aligns its items.

Changes:

  • Add a CSS rule that right-aligns the exception widget's toolbar actions within the title row.

@connor4312 Connor Peet (connor4312) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

thanks!

@connor4312
Connor Peet (connor4312) merged commit 157757d into microsoft:main Jul 9, 2026
29 checks passed
@vs-code-engineering vs-code-engineering Bot added this to the 1.129.0 milestone Jul 9, 2026
@myselfsiddharth
Siddharth Mehta (myselfsiddharth) deleted the fix/exception-widget-toolbar-alignment branch July 22, 2026 00:26
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Aug 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

5 participants