Skip to content

Commit dde5d4a

Browse files
committed
ux: margins for FileHistories content
1 parent 24590a0 commit dde5d4a

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/Views/FileHistories.axaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@
5656
</Grid.ColumnDefinitions>
5757

5858
<DataGrid Grid.Column="0"
59-
Background="Transparent"
59+
Background="{DynamicResource Brush.Contents}"
60+
BorderThickness="1"
61+
Margin="8,4,4,8"
62+
BorderBrush="{DynamicResource Brush.Border2}"
6063
ItemsSource="{Binding Commits}"
6164
SelectedItem="{Binding SelectedCommit, Mode=TwoWay}"
6265
SelectionMode="Single"
@@ -96,15 +99,15 @@
9699
HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
97100
Background="Transparent"
98101
BorderThickness="1,0,0,0"
99-
BorderBrush="{DynamicResource Brush.Border2}"/>
102+
BorderBrush="{DynamicResource Brush.Border0}"/>
100103

101104
<v:LoadingIcon Grid.Column="2"
102105
Width="48" Height="48"
103106
HorizontalAlignment="Center" VerticalAlignment="Center"
104107
IsVisible="{Binding IsLoading}"/>
105108

106-
<Grid Grid.Column="2" RowDefinitions="*,3,*" Margin="0,4,4,4" IsVisible="{Binding !IsLoading}">
107-
<ContentControl Grid.Row="0" Content="{Binding DiffContext}">
109+
<Grid Grid.Column="2" RowDefinitions="*,3,*" IsVisible="{Binding !IsLoading}">
110+
<ContentControl Grid.Row="0" Margin="4,4,8,0" Content="{Binding DiffContext}">
108111
<ContentControl.DataTemplates>
109112
<DataTemplate DataType="vm:DiffContext">
110113
<v:DiffView/>
@@ -117,7 +120,7 @@
117120
HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
118121
Background="Transparent"/>
119122

120-
<Grid Grid.Row="2">
123+
<Grid Grid.Row="2" Margin="0,0,4,4">
121124
<Border Background="{DynamicResource Brush.Window}">
122125
<Path Width="128" Height="128"
123126
Data="{StaticResource Icons.Detail}"

0 commit comments

Comments
 (0)