Skip to content

Commit 9c53894

Browse files
committed
ux: add an empty icon if there are no git command logs available
Signed-off-by: leo <[email protected]>
1 parent 06d0334 commit 9c53894

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Views/ViewLogs.axaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,13 @@
9696
</ListBox.ItemTemplate>
9797
</ListBox>
9898

99+
<Path Grid.Column="0"
100+
HorizontalAlignment="Center" VerticalAlignment="Center"
101+
Width="48" Height="48"
102+
Data="{StaticResource Icons.Empty}"
103+
Fill="{DynamicResource Brush.FG2}"
104+
IsVisible="{Binding Logs.Count, Converter={x:Static c:IntConverters.IsZero}}"/>
105+
99106
<Border Grid.Column="2"
100107
BorderBrush="{DynamicResource Brush.Border2}"
101108
BorderThickness="1"

0 commit comments

Comments
 (0)