Skip to content

Commit

Permalink
Fix: Fixed column sizes in the details layout (#11198)
Browse files Browse the repository at this point in the history
  • Loading branch information
ferrariofilippo authored Feb 7, 2023
1 parent 69de869 commit 0308c5c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Files.App/ViewModels/ColumnsViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 5 additions & 3 deletions src/Files.App/Views/LayoutModes/DetailsLayoutBrowser.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@

<Grid
x:Name="ItemTagGrid"
Width="{Binding ColumnsViewModel.TagColumn.Length.Value, ElementName=PageRoot, Mode=OneWay}"
Width="{Binding ColumnsViewModel.TagColumn.LengthIncludingGridSplitter.Value, ElementName=PageRoot, Mode=OneWay}"
HorizontalAlignment="Stretch"
VerticalAlignment="Center"
Visibility="{Binding ColumnsViewModel.TagColumn.Visibility, ElementName=PageRoot, Mode=OneWay}">
Expand Down Expand Up @@ -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}" />

<TextBlock
x:Name="ItemDateDeleted"
Expand All @@ -715,7 +716,8 @@
VerticalAlignment="Center"
x:Load="{x:Bind IsRecycleBinItem}"
Style="{StaticResource ColumnContentTextBlock}"
Text="{x:Bind AsRecycleBinItem.ItemDateDeleted, Mode=OneWay}" />
Text="{x:Bind AsRecycleBinItem.ItemDateDeleted, Mode=OneWay}"
Visibility="{Binding ColumnsViewModel.DateDeletedColumn.Visibility, ElementName=PageRoot, Mode=OneWay}" />

<TextBlock
x:Name="ItemDateModified"
Expand Down

0 comments on commit 0308c5c

Please sign in to comment.