Skip to content

Commit 11f3547

Browse files
authored
Modern UI: Adjust padding for status bar items (#331496)
style(statusBar): adjust padding for first and last visible items for symmetry Co-authored-by: mrleemurray <mrleemurray@users.noreply.github.com>
1 parent 474a349 commit 11f3547

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

src/vs/workbench/contrib/modernUI/browser/media/statusBar.css

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,12 @@
6060
background-image: linear-gradient(var(--vscode-statusBarItem-compactHoverBackground), var(--vscode-statusBarItem-compactHoverBackground));
6161
}
6262

63+
/*
64+
* The items at either end of the status bar attach to the corner in the base
65+
* styles, which pads them asymmetrically. As pills they need even padding on
66+
* both sides, so give both end items the same symmetric inset.
67+
*/
68+
.modern-ui .part.statusbar > .items-container > .statusbar-item.left.first-visible-item > .statusbar-item-label,
6369
.modern-ui .part.statusbar > .items-container > .statusbar-item.right.last-visible-item > .statusbar-item-label {
6470
padding: 0 var(--vscode-spacing-size60);
6571
}
66-
67-
.modern-ui .part.statusbar > .items-container > .statusbar-item.left.first-visible-item > .statusbar-item-label {
68-
padding-right: var(--vscode-spacing-size40);
69-
}

0 commit comments

Comments
 (0)