refactor: simplify layout logic in ChangesViewPane and enhance CIStatusWidget styles

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
mrleemurray
2026-03-26 14:52:55 +00:00
parent 872217c276
commit 7e41df97ac
4 changed files with 24 additions and 35 deletions

View File

@@ -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);
},
};