Skip to content

Commit 43e53b2

Browse files
authored
Merge pull request #294094 from microsoft/mrleemurray/delighted-tan-tern
Reduce activity bar dimensions and improve styling
2 parents fbefd63 + 21f33aa commit 43e53b2

File tree

3 files changed

+24
-23
lines changed

3 files changed

+24
-23
lines changed

src/vs/workbench/browser/parts/activitybar/activitybarPart.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,16 @@ import { SwitchCompositeViewAction } from '../compositeBarActions.js';
4141

4242
export class ActivitybarPart extends Part {
4343

44-
static readonly ACTION_HEIGHT = 48;
44+
static readonly ACTION_HEIGHT = 32;
4545

4646
static readonly pinnedViewContainersKey = 'workbench.activity.pinnedViewlets2';
4747
static readonly placeholderViewContainersKey = 'workbench.activity.placeholderViewlets';
4848
static readonly viewContainersWorkspaceStateKey = 'workbench.activity.viewletsWorkspaceState';
4949

5050
//#region IView
5151

52-
readonly minimumWidth: number = 48;
53-
readonly maximumWidth: number = 48;
52+
readonly minimumWidth: number = 36;
53+
readonly maximumWidth: number = 36;
5454
readonly minimumHeight: number = 0;
5555
readonly maximumHeight: number = Number.POSITIVE_INFINITY;
5656

src/vs/workbench/browser/parts/activitybar/media/activityaction.css

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
.monaco-workbench .activitybar > .content .composite-bar > .monaco-action-bar .action-item::after {
1313
position: absolute;
1414
content: '';
15-
width: 48px;
15+
width: 36px;
1616
height: 2px;
1717
display: none;
1818
background-color: transparent;
@@ -46,21 +46,21 @@
4646
z-index: 1;
4747
display: flex;
4848
overflow: hidden;
49-
width: 48px;
50-
height: 48px;
49+
width: 36px;
50+
height: 32px;
5151
margin-right: 0;
5252
box-sizing: border-box;
5353

5454
}
5555

5656
.monaco-workbench .activitybar > .content :not(.monaco-menu) > .monaco-action-bar .action-label:not(.codicon) {
5757
font-size: 15px;
58-
line-height: 40px;
59-
padding: 0 0 0 48px;
58+
line-height: 32px;
59+
padding: 0 0 0 36px;
6060
}
6161

6262
.monaco-workbench .activitybar > .content :not(.monaco-menu) > .monaco-action-bar .action-label.codicon {
63-
font-size: 24px;
63+
font-size: 16px;
6464
align-items: center;
6565
justify-content: center;
6666
}
@@ -157,27 +157,28 @@
157157

158158
.monaco-workbench .activitybar > .content :not(.monaco-menu) > .monaco-action-bar .badge .badge-content {
159159
position: absolute;
160-
top: 24px;
161-
right: 8px;
160+
top: 17px;
161+
right: 6px;
162162
font-size: 9px;
163163
font-weight: 600;
164-
min-width: 8px;
165-
height: 16px;
166-
line-height: 16px;
167-
padding: 0 4px;
168-
border-radius: 20px;
164+
min-width: 9px;
165+
height: 13px;
166+
line-height: 13px;
167+
padding: 0 2px;
168+
border-radius: 13px;
169169
text-align: center;
170+
border: none !important;
170171
}
171172

172173
.monaco-workbench .activitybar > .content :not(.monaco-menu) > .monaco-action-bar .profile-badge .profile-text-overlay {
173174
position: absolute;
174175
font-weight: 600;
175-
font-size: 9px;
176-
line-height: 10px;
177-
top: 24px;
178-
right: 6px;
179-
padding: 2px 3px;
180-
border-radius: 7px;
176+
font-size: 8px;
177+
line-height: 8px;
178+
top: 14px;
179+
right: 2px;
180+
padding: 2px 2px;
181+
border-radius: 6px;
181182
background-color: var(--vscode-profileBadge-background);
182183
color: var(--vscode-profileBadge-foreground);
183184
border: 2px solid var(--vscode-activityBar-background);

src/vs/workbench/browser/parts/activitybar/media/activitybarpart.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*--------------------------------------------------------------------------------------------*/
55

66
.monaco-workbench .part.activitybar {
7-
width: 48px;
7+
width: 36px;
88
height: 100%;
99
}
1010

0 commit comments

Comments
 (0)