Skip to content

Commit cc0341b

Browse files
authored
adjust title bar appearance in web (microsoft#165076)
refs VS Code for the Web: title area shows up in pre-existing sessions microsoft#161948
1 parent c9ce188 commit cc0341b

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

src/vs/workbench/browser/layout.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,6 +1078,11 @@ export abstract class Layout extends Disposable implements IWorkbenchLayoutServi
10781078
return true;
10791079
}
10801080

1081+
// with the command center enabled, we should always show
1082+
if (this.configurationService.getValue<boolean>('window.commandCenter')) {
1083+
return true;
1084+
}
1085+
10811086
// if WCO is visible, we have to show the title bar
10821087
if (isWCOVisible()) {
10831088
return true;

src/vs/workbench/browser/parts/titlebar/media/titlebarpart.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@
159159
flex-wrap: nowrap;
160160
}
161161

162+
.monaco-workbench.web .part.titlebar>.titlebar-container>.menubar {
163+
margin-left: 4px;
164+
}
165+
162166
.monaco-workbench .part.titlebar>.titlebar-container.counter-zoom > .menubar .menubar-menu-button > .menubar-menu-items-holder.monaco-menu-container {
163167
zoom: var(--zoom-factor);
164168
}

src/vs/workbench/browser/parts/titlebar/titlebarPart.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ export class TitlebarPart extends Part implements ITitleService {
236236
this.dragRegion = prepend(this.rootContainer, $('div.titlebar-drag-region'));
237237

238238
// App Icon (Native Windows/Linux and Web)
239-
if (!isMacintosh || isWeb) {
239+
if (!isMacintosh && !isWeb) {
240240
this.appIcon = prepend(this.rootContainer, $('a.window-appicon'));
241241

242242
// Web-only home indicator and menu

0 commit comments

Comments
 (0)