Skip to content

Commit 8b0d681

Browse files
committed
Improved spacing
1 parent b13c64f commit 8b0d681

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

src/Files.App/Views/Properties/HashesPage.xaml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,30 +26,28 @@
2626
</vm:BasePropertiesPage.Resources>
2727

2828
<Grid x:Name="RootGrid">
29+
<Grid.RowDefinitions>
30+
<RowDefinition Height="Auto" />
31+
<RowDefinition Height="Auto" />
32+
<RowDefinition Height="*" />
33+
</Grid.RowDefinitions>
2934

3035
<!-- Hash Comparison Section -->
3136
<Grid
3237
x:Name="HashComparisonGrid"
33-
Margin="12"
38+
Margin="12,12,12,4"
3439
VerticalAlignment="Top"
3540
Background="{ThemeResource CardBackgroundFillColorDefaultBrush}"
3641
BorderBrush="{ThemeResource CardStrokeColorDefaultBrush}"
3742
BorderThickness="1"
3843
CornerRadius="4">
39-
<Grid.RowDefinitions>
40-
<RowDefinition Height="Auto" />
41-
<RowDefinition Height="Auto" />
42-
</Grid.RowDefinitions>
4344
<Grid.ColumnDefinitions>
4445
<ColumnDefinition Width="*" />
4546
<ColumnDefinition Width="Auto" />
4647
</Grid.ColumnDefinitions>
4748

4849
<!-- Hash Input -->
49-
<Grid
50-
Grid.Row="0"
51-
Grid.Column="0"
52-
Margin="12">
50+
<Grid Grid.Column="0" Margin="12">
5351
<Grid.ColumnDefinitions>
5452
<ColumnDefinition Width="*" />
5553
</Grid.ColumnDefinitions>
@@ -70,7 +68,6 @@
7068
<!-- Compare File Button -->
7169
<Button
7270
x:Name="CompareFileButton"
73-
Grid.Row="0"
7471
Grid.Column="1"
7572
Margin="12"
7673
Command="{x:Bind HashesViewModel.CompareFileCommand}"
@@ -80,16 +77,17 @@
8077
<InfoBar
8178
x:Name="HashMatchInfoBar"
8279
Grid.Row="1"
83-
Grid.Column="0"
84-
Margin="12,75,12,12"
80+
Margin="12,4,12,4"
81+
x:Load="{x:Bind HashesViewModel.IsInfoBarOpen, Mode=OneWay}"
8582
IsClosable="False"
86-
IsOpen="{x:Bind HashesViewModel.IsInfoBarOpen, Mode=OneWay}"
83+
IsOpen="True"
8784
Message="{x:Bind HashesViewModel.InfoBarTitle, Mode=OneWay}"
8885
Severity="{x:Bind HashesViewModel.InfoBarSeverity, Mode=OneWay}" />
8986

9087
<Grid
9188
x:Name="HashesListGrid"
92-
Margin="12,130,12,12"
89+
Grid.Row="2"
90+
Margin="12,4,12,12"
9391
VerticalAlignment="Stretch"
9492
Background="{ThemeResource CardBackgroundFillColorDefaultBrush}"
9593
BorderBrush="{ThemeResource CardStrokeColorDefaultBrush}"

0 commit comments

Comments
 (0)