From 0409849a2553faa1045fcfe5deba581d65e00dc4 Mon Sep 17 00:00:00 2001 From: leo Date: Mon, 9 Feb 2026 14:30:07 +0800 Subject: [PATCH] fix: the `MinWidth` of author column changed after dragging the right border of it (#1591) Signed-off-by: leo --- src/ViewModels/LayoutInfo.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ViewModels/LayoutInfo.cs b/src/ViewModels/LayoutInfo.cs index 26ae128d..1b78153a 100644 --- a/src/ViewModels/LayoutInfo.cs +++ b/src/ViewModels/LayoutInfo.cs @@ -68,7 +68,7 @@ namespace SourceGit.ViewModels public DataGridLength AuthorColumnWidth { get => _authorColumnWidth; - set => SetProperty(ref _authorColumnWidth, value); + set => SetProperty(ref _authorColumnWidth, new DataGridLength(value.Value, DataGridLengthUnitType.Pixel, 0, value.DisplayValue)); } private GridLength _repositorySidebarWidth = new GridLength(250, GridUnitType.Pixel); @@ -76,6 +76,6 @@ namespace SourceGit.ViewModels private GridLength _stashesLeftWidth = new GridLength(300, GridUnitType.Pixel); private GridLength _commitDetailChangesLeftWidth = new GridLength(256, GridUnitType.Pixel); private GridLength _commitDetailFilesLeftWidth = new GridLength(256, GridUnitType.Pixel); - private DataGridLength _authorColumnWidth = new DataGridLength(120, DataGridLengthUnitType.Pixel, 120, 120); + private DataGridLength _authorColumnWidth = new DataGridLength(120, DataGridLengthUnitType.Pixel, 0, 120); } }