From d794a61196103fdadb937ff59806bd5b41d88c7c Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 29 Aug 2024 10:17:22 +0800 Subject: [PATCH] enhance: remember the width of author name column in histories view (#425) --- src/ViewModels/LayoutInfo.cs | 7 +++++++ src/Views/Repository.axaml | 1 + 2 files changed, 8 insertions(+) diff --git a/src/ViewModels/LayoutInfo.cs b/src/ViewModels/LayoutInfo.cs index 73ffb215..d5f7ec2b 100644 --- a/src/ViewModels/LayoutInfo.cs +++ b/src/ViewModels/LayoutInfo.cs @@ -30,6 +30,12 @@ namespace SourceGit.ViewModels set => SetProperty(ref _repositorySidebarWidth, value); } + public GridLength HistoriesAuthorColumnWidth + { + get => _historiesAuthorColumnWidth; + set => SetProperty(ref _historiesAuthorColumnWidth, value); + } + public GridLength WorkingCopyLeftWidth { get => _workingCopyLeftWidth; @@ -55,6 +61,7 @@ namespace SourceGit.ViewModels } private GridLength _repositorySidebarWidth = new GridLength(250, GridUnitType.Pixel); + private GridLength _historiesAuthorColumnWidth = new GridLength(120, GridUnitType.Pixel); private GridLength _workingCopyLeftWidth = new GridLength(300, GridUnitType.Pixel); private GridLength _stashesLeftWidth = new GridLength(300, GridUnitType.Pixel); private GridLength _commitDetailChangesLeftWidth = new GridLength(256, GridUnitType.Pixel); diff --git a/src/Views/Repository.axaml b/src/Views/Repository.axaml index 5693e0a9..7a8bd2a1 100644 --- a/src/Views/Repository.axaml +++ b/src/Views/Repository.axaml @@ -609,6 +609,7 @@