mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 03:54:24 +01:00
refactor: simplify layout logic in ChangesViewPane and enhance CIStatusWidget styles
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
@@ -444,15 +444,14 @@ export class ChangesViewPane extends ViewPane {
|
||||
const ciMinHeight = CIStatusWidget.HEADER_HEIGHT + CIStatusWidget.MIN_BODY_HEIGHT + ciMarginTop;
|
||||
|
||||
// Top pane: file tree
|
||||
const self = this;
|
||||
const treePane: IView = {
|
||||
element: this.contentContainer,
|
||||
minimumSize: ciMinHeight,
|
||||
maximumSize: Number.POSITIVE_INFINITY,
|
||||
onDidChange: Event.None,
|
||||
layout: (height) => {
|
||||
self.contentContainer!.style.height = `${height}px`;
|
||||
self._layoutTreeInPane(height);
|
||||
this.contentContainer!.style.height = `${height}px`;
|
||||
this._layoutTreeInPane(height);
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user