From 06ba2fd7335d020fbb9436719efeadbea15e4c2f Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 9 Jul 2024 16:29:41 +0800 Subject: [PATCH] feature: allow to resize the width of `AUTHOR` column in histories (#203) --- src/Views/Histories.axaml | 93 ++++++++++++++++++++++++++---------- src/Views/Histories.axaml.cs | 5 +- src/Views/Repository.axaml | 2 +- 3 files changed, 73 insertions(+), 27 deletions(-) diff --git a/src/Views/Histories.axaml b/src/Views/Histories.axaml index e07b8d0b..63944e9b 100644 --- a/src/Views/Histories.axaml +++ b/src/Views/Histories.axaml @@ -18,19 +18,53 @@ SelectionMode="Extended" SelectedItem="{Binding AutoSelectedCommit, Mode=OneWay}" CanUserReorderColumns="False" - CanUserResizeColumns="False" + CanUserResizeColumns="True" CanUserSortColumns="False" IsReadOnly="True" - HeadersVisibility="None" + HeadersVisibility="Column" Focusable="False" RowHeight="28" + ColumnHeaderHeight="28" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto" LayoutUpdated="OnCommitDataGridLayoutUpdated" SelectionChanged="OnCommitDataGridSelectionChanged" ContextRequested="OnCommitDataGridContextRequested"> + + + + - + + + + + @@ -77,44 +111,53 @@ - + + + + + - + + + + - - - - - - - - - + + + + + - + + + + + - +