Skip to content

Commit

Permalink
Fix: Fixed issue where option to hide details pane wasn't working (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
yaira2 authored Feb 10, 2023
1 parent 6c3c625 commit 1e11ff3
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/Files.App/UserControls/Pane/PreviewPane.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@
BorderThickness="0,0,0,1">
<Grid.RowDefinitions>
<RowDefinition Height="2*" MinHeight="100" />
<RowDefinition
x:Name="PropertiesRow"
Height="3*"
MinHeight="100" />
<RowDefinition x:Name="PropertiesRow" Height="3*" />
</Grid.RowDefinitions>

<Grid
Expand Down Expand Up @@ -105,14 +102,18 @@
Visibility="Collapsed">
<ItemsControl.ItemTemplate>
<DataTemplate x:DataType="properties:FileProperty">
<Grid HorizontalAlignment="Stretch" AutomationProperties.Name="{x:Bind Name, Mode=OneWay}">
<Grid
HorizontalAlignment="Stretch"
AutomationProperties.Name="{x:Bind Name, Mode=OneWay}"
ColumnSpacing="12">
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
<ColumnDefinition Width="1*" />
<ColumnDefinition Width="2*" />
</Grid.ColumnDefinitions>
<!-- Property -->
<TextBlock
HorizontalAlignment="Stretch"
VerticalAlignment="Center"
MaxLines="2"
Style="{StaticResource BodyTextBlockStyle}"
Text="{x:Bind Name, Mode=OneWay}" />
Expand All @@ -121,6 +122,7 @@
<TextBox
x:Name="PropertyValueTemplateTextBox"
Grid.Column="1"
MaxHeight="50"
HorizontalAlignment="Stretch"
Background="Transparent"
BorderBrush="Transparent"
Expand Down Expand Up @@ -200,6 +202,7 @@
</VisualState.StateTriggers>
<VisualState.Setters>
<Setter Target="RootPropertiesScrollViewer.Visibility" Value="Collapsed" />
<Setter Target="PropertiesRow.Height" Value="0" />
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
Expand Down

0 comments on commit 1e11ff3

Please sign in to comment.