fix: change list in grid mode looks and works weird (#157)

This commit is contained in:
leo 2024-06-01 12:46:31 +08:00
parent 9d9dd6acb5
commit f1ff969090
4 changed files with 9 additions and 16 deletions

View file

@ -155,11 +155,7 @@ namespace SourceGit.Views
{
var source = new FlatTreeDataGridSource<Models.Change>(changes)
{
Columns =
{
new TemplateColumn<Models.Change>(null, "GridModeFileTemplate", null, GridLength.Auto),
new TemplateColumn<Models.Change>(null, "GridModeDirTemplate", null, GridLength.Auto)
},
Columns = { new TemplateColumn<Models.Change>(null, "GridModeTemplate", null, GridLength.Auto) },
};
var selection = new Models.TreeDataGridSelectionModel<Models.Change>(source, null);