From 0308c5c74d22efaae9c80d0675e0c8c6eda070e2 Mon Sep 17 00:00:00 2001 From: Filippo Ferrario <102259289+ferrariofilippo@users.noreply.github.com> Date: Tue, 7 Feb 2023 17:28:12 +0100 Subject: [PATCH] Fix: Fixed column sizes in the details layout (#11198) --- src/Files.App/ViewModels/ColumnsViewModel.cs | 2 +- src/Files.App/Views/LayoutModes/DetailsLayoutBrowser.xaml | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Files.App/ViewModels/ColumnsViewModel.cs b/src/Files.App/ViewModels/ColumnsViewModel.cs index b01dc04eee4e..17e745216884 100644 --- a/src/Files.App/ViewModels/ColumnsViewModel.cs +++ b/src/Files.App/ViewModels/ColumnsViewModel.cs @@ -235,7 +235,7 @@ public GridLength Length get => IsHidden || UserCollapsed ? new GridLength(0) : UserLength; } - private const int gridSplitterWidth = 8; + private const int gridSplitterWidth = 12; [LiteDB.BsonIgnore] public GridLength LengthIncludingGridSplitter diff --git a/src/Files.App/Views/LayoutModes/DetailsLayoutBrowser.xaml b/src/Files.App/Views/LayoutModes/DetailsLayoutBrowser.xaml index fc24c453deee..1b1f55f30794 100644 --- a/src/Files.App/Views/LayoutModes/DetailsLayoutBrowser.xaml +++ b/src/Files.App/Views/LayoutModes/DetailsLayoutBrowser.xaml @@ -672,7 +672,7 @@ @@ -705,7 +705,8 @@ VerticalAlignment="Center" x:Load="{x:Bind IsRecycleBinItem}" Style="{StaticResource ColumnContentTextBlock}" - Text="{x:Bind AsRecycleBinItem.ItemOriginalPath, Mode=OneWay}" /> + Text="{x:Bind AsRecycleBinItem.ItemOriginalPath, Mode=OneWay}" + Visibility="{Binding ColumnsViewModel.OriginalPathColumn.Visibility, ElementName=PageRoot, Mode=OneWay}" /> + Text="{x:Bind AsRecycleBinItem.ItemDateDeleted, Mode=OneWay}" + Visibility="{Binding ColumnsViewModel.DateDeletedColumn.Visibility, ElementName=PageRoot, Mode=OneWay}" />