Skip to content

Commit 5f11d2f

Browse files
authored
Set group size to half width on toSide (microsoft#166421)
1 parent d34224b commit 5f11d2f

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1117,14 +1117,7 @@ export class GettingStartedPage extends EditorPane {
11171117
if (this.groupsService.count === 1) {
11181118
this.groupsService.addGroup(this.groupsService.groups[0], GroupDirection.LEFT, { activate: true });
11191119

1120-
let gettingStartedSize: number;
1121-
if (fullSize.width > 1600) {
1122-
gettingStartedSize = 800;
1123-
} else if (fullSize.width > 800) {
1124-
gettingStartedSize = 400;
1125-
} else {
1126-
gettingStartedSize = 350;
1127-
}
1120+
const gettingStartedSize = Math.floor(fullSize.width / 2);
11281121

11291122
const gettingStartedGroup = this.groupsService.getGroups(GroupsOrder.MOST_RECENTLY_ACTIVE).find(group => (group.activeEditor instanceof GettingStartedInput));
11301123
this.groupsService.setSize(assertIsDefined(gettingStartedGroup), { width: gettingStartedSize, height: fullSize.height });

0 commit comments

Comments
 (0)