Skip to content

Style overrides: Adjust status bar padding for floating panels - #325962

Merged
Lee Murray (mrleemurray) merged 2 commits into
mainfrom
mrleemurray/blonde-purple-herring
Jul 15, 2026
Merged

Lee Murray (mrleemurray) merged 2 commits into
mainfrom
mrleemurray/blonde-purple-herring

Conversation

@mrleemurray

Copy link
Copy Markdown
Contributor

Improve the status bar padding for better alignment in floating panels, accommodating scenarios with a hidden activity bar and ensuring consistent spacing.

Fixes #325761

Copilot AI review requested due to automatic review settings July 15, 2026 14:08
@mrleemurray
Lee Murray (mrleemurray) enabled auto-merge (squash) July 15, 2026 14:08

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

Adjusts Modern UI status-bar spacing to align with compact, regular, and hidden activity bars.

Changes:

  • Adds activity-bar-state-aware status-bar insets.
  • Refines edge-item padding.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
floatingPanels.css Adjusts floating status-bar gutters.
statusBar.css Refines trailing status-item padding.

/* With a compact activity bar the horizontal inset is tightened to match. The
* `compact` class lives on the activity bar element, so `:has()` lets the status
* bar (a sibling part) react without any code-side class plumbing. */
.monaco-workbench.floating-panels:has(.part.activitybar.compact) .part.statusbar {
* split view toggles. With no bar to align to, fall back to the standard 4px
* inset. This has higher specificity than the compact rule above, so a hidden
* compact bar still resolves to 4px. */
.monaco-workbench.floating-panels:has(.split-view-view:not(.visible) .part.activitybar) .part.statusbar {
background-image: linear-gradient(var(--vscode-toolbar-hoverBackground), var(--vscode-toolbar-hoverBackground));
}

.style-override .part.statusbar > .items-container > .statusbar-item.right.last-visible-item > .statusbar-item-label {
@mrleemurray
Lee Murray (mrleemurray) merged commit 3300c66 into main Jul 15, 2026
30 checks passed
@mrleemurray
Lee Murray (mrleemurray) deleted the mrleemurray/blonde-purple-herring branch July 15, 2026 16:51
@vs-code-engineering vs-code-engineering Bot added this to the 1.130.0 milestone Jul 15, 2026
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Aug 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Status/activity bars: align remote item width

3 participants