Skip to content

Commit 9668efb

Browse files
committed
code_style: remove Rider warnings
1 parent 45869c2 commit 9668efb

File tree

1 file changed

+17
-23
lines changed

1 file changed

+17
-23
lines changed

src/Views/Histories.axaml

Lines changed: 17 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -216,29 +216,23 @@
216216
HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
217217
Background="{DynamicResource Brush.Window}"
218218
BorderBrush="{DynamicResource Brush.Border0}"/>
219+
220+
<Grid Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3">
221+
<Grid IsVisible="{Binding DetailContext, Converter={x:Static ObjectConverters.IsNull}}">
222+
<Path Width="128" Height="128"
223+
Data="{StaticResource Icons.Detail}"
224+
HorizontalAlignment="Center"
225+
Fill="{DynamicResource Brush.FG2}"/>
219226

220-
<Border Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3">
221-
<ContentControl>
222-
<ContentControl.Content>
223-
<Binding Path="DetailContext">
224-
<Binding.TargetNullValue>
225-
<Grid>
226-
<Path Width="128" Height="128"
227-
Data="{StaticResource Icons.Detail}"
228-
HorizontalAlignment="Center"
229-
Fill="{DynamicResource Brush.FG2}"/>
230-
231-
<StackPanel Margin="0,8" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Bottom">
232-
<Path Width="12" Height="12" VerticalAlignment="Center" Data="{StaticResource Icons.Info}" Fill="{DynamicResource Brush.FG2}"/>
233-
<TextBlock Margin="4,0" Text="{DynamicResource Text.Histories.Tips.Prefix}" FontWeight="Bold" Foreground="{DynamicResource Brush.FG2}"/>
234-
<TextBlock Text="{DynamicResource Text.Histories.Tips}" Foreground="{DynamicResource Brush.FG2}" IsVisible="{OnPlatform True, macOS=False}"/>
235-
<TextBlock Text="{DynamicResource Text.Histories.Tips.MacOS}" Foreground="{DynamicResource Brush.FG2}" IsVisible="{OnPlatform False, macOS=True}"/>
236-
</StackPanel>
237-
</Grid>
238-
</Binding.TargetNullValue>
239-
</Binding>
240-
</ContentControl.Content>
241-
227+
<StackPanel Margin="0,8" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Bottom">
228+
<Path Width="12" Height="12" VerticalAlignment="Center" Data="{StaticResource Icons.Info}" Fill="{DynamicResource Brush.FG2}"/>
229+
<TextBlock Margin="4,0" Text="{DynamicResource Text.Histories.Tips.Prefix}" FontWeight="Bold" Foreground="{DynamicResource Brush.FG2}"/>
230+
<TextBlock Text="{DynamicResource Text.Histories.Tips}" Foreground="{DynamicResource Brush.FG2}" IsVisible="{OnPlatform True, macOS=False}"/>
231+
<TextBlock Text="{DynamicResource Text.Histories.Tips.MacOS}" Foreground="{DynamicResource Brush.FG2}" IsVisible="{OnPlatform False, macOS=True}"/>
232+
</StackPanel>
233+
</Grid>
234+
235+
<ContentControl Content="{Binding DetailContext}">
242236
<ContentControl.DataTemplates>
243237
<DataTemplate DataType="vm:CommitDetail">
244238
<v:CommitDetail/>
@@ -264,6 +258,6 @@
264258
</DataTemplate>
265259
</ContentControl.DataTemplates>
266260
</ContentControl>
267-
</Border>
261+
</Grid>
268262
</v:LayoutableGrid>
269263
</UserControl>

0 commit comments

Comments
 (0)