Skip to content

Commit 14fdd0b

Browse files
authored
sessions - fix chat bar layout sizes (#298256)
1 parent 917576c commit 14fdd0b

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

src/vs/sessions/browser/parts/chatBarPart.ts

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ export class ChatBarPart extends AbstractPaneCompositePart {
3434
static readonly placeholderViewContainersKey = 'workbench.chatbar.placeholderPanels';
3535
static readonly viewContainersWorkspaceStateKey = 'workbench.chatbar.viewContainersWorkspaceState';
3636

37-
// Use the side bar dimensions
38-
override readonly minimumWidth: number = 170;
37+
override readonly minimumWidth: number = 300;
3938
override readonly maximumWidth: number = Number.POSITIVE_INFINITY;
4039
override readonly minimumHeight: number = 0;
4140
override readonly maximumHeight: number = Number.POSITIVE_INFINITY;
@@ -44,21 +43,6 @@ export class ChatBarPart extends AbstractPaneCompositePart {
4443
return this.layoutService.mainContainerDimension.height * 0.4;
4544
}
4645

47-
get preferredWidth(): number | undefined {
48-
const activeComposite = this.getActivePaneComposite();
49-
50-
if (!activeComposite) {
51-
return undefined;
52-
}
53-
54-
const width = activeComposite.getOptimalWidth();
55-
if (typeof width !== 'number') {
56-
return undefined;
57-
}
58-
59-
return Math.max(width, 300);
60-
}
61-
6246
readonly priority = LayoutPriority.High;
6347

6448
constructor(

0 commit comments

Comments
 (0)