Skip to content

Align compact activity bar chip size and spacing with top/bottom - #325423

Open
cipheraxat wants to merge 2 commits into
microsoft:mainfrom
cipheraxat:fix/325127-activity-bar-compact-align
Open

Align compact activity bar chip size and spacing with top/bottom#325423
cipheraxat wants to merge 2 commits into
microsoft:mainfrom
cipheraxat:fix/325127-activity-bar-compact-align

Conversation

@cipheraxat

@cipheraxat cipheraxat commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Fixes #325127

Summary

In Modern UI compact mode, the side activity bar's selected/hover chips were 28×28 with a larger radius, while the top/bottom activity bar uses 24×24 chips with cornerRadius-small. Item spacing was also off on the side because the vertical action bar uses display: inline-block, so CSS gap never applied.

This brings the compact side bar in line with top/bottom: 24×24 chips, matching radius, and a 4px gap between items.

Changes

In activityBar.css:

  • Size compact active/hover indicators to 24×24 and center them in the 32px-wide bar
  • Use cornerRadius-small (same as horizontal)
  • Switch compact vertical .actions-container to a column flex layout so gap: 4px works
  • Reset inherited bottom/margin on the active chip so it aligns with hover at top: 4px

Screenshots

Before — compact side (28×28, no gap)

Before compact side

Before — top (24×24 reference)

Before top

After — compact side (24×24, 4px gap)

After compact side

After — top (unchanged)

After top

Full workbench

Before:

Before workbench

After:

After workbench

How to test

  1. Enable "workbench.experimental.modernUI": true
  2. Set Activity Bar location to Side and size to Compact (or the equivalent layout that yields the 32px-wide bar)
  3. Confirm the selected/hover chip is the same size as when Activity Bar is Top / Bottom
  4. Confirm spacing between icons matches the horizontal bar

Match Modern UI compact side indicators to the 24×24 horizontal chips and apply a 4px item gap so compact mode stays consistent across activity bar positions.
Copilot AI review requested due to automatic review settings July 11, 2026 10:33

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

Aligns compact side activity bar chips and spacing with top/bottom layouts.

Changes:

  • Resizes active and hover chips to 24×24.
  • Uses the control-tier radius and 4px item spacing.
  • Enables vertical flex layout so spacing applies.

Reset inherited bottom/margin so the 24px active indicator stays at top: 4px.
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.

Activity bar in compact mode should match the icon size and gap with the activity bar icon position is on top or bottom for better consistency

3 participants