ux: repository left panel layout

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2024-11-13 11:35:48 +08:00
parent fd5c1f5105
commit ea4e968404
No known key found for this signature in database
3 changed files with 6 additions and 5 deletions

View file

@ -256,7 +256,7 @@
<ListBox Grid.Row="7" <ListBox Grid.Row="7"
x:Name="SubmoduleList" x:Name="SubmoduleList"
Height="0" Height="0"
Margin="8,0,4,0" Margin="12,0,4,0"
Classes="repo_left_content_list" Classes="repo_left_content_list"
ItemsSource="{Binding VisibleSubmodules}" ItemsSource="{Binding VisibleSubmodules}"
SelectionMode="Single" SelectionMode="Single"
@ -312,7 +312,7 @@
<ListBox Grid.Row="9" <ListBox Grid.Row="9"
x:Name="WorktreeList" x:Name="WorktreeList"
Height="0" Height="0"
Margin="8,0,4,0" Margin="12,0,4,0"
Classes="repo_left_content_list" Classes="repo_left_content_list"
ItemsSource="{Binding Worktrees}" ItemsSource="{Binding Worktrees}"
SelectionMode="Single" SelectionMode="Single"

View file

@ -60,6 +60,7 @@
<DataTemplate DataType="vm:TagCollectionAsList"> <DataTemplate DataType="vm:TagCollectionAsList">
<ListBox Classes="repo_left_content_list" <ListBox Classes="repo_left_content_list"
Margin="12,0,0,0"
ItemsSource="{Binding Tags}" ItemsSource="{Binding Tags}"
SelectionMode="Single" SelectionMode="Single"
SelectionChanged="OnRowSelectionChanged"> SelectionChanged="OnRowSelectionChanged">
@ -70,8 +71,8 @@
ContextRequested="OnRowContextRequested" ContextRequested="OnRowContextRequested"
ToolTip.Tip="{Binding Message}"> ToolTip.Tip="{Binding Message}">
<Path Grid.Column="0" <Path Grid.Column="0"
Width="10" Height="10" Margin="4,0,0,0"
Margin="8,0,0,0" Width="12" Height="12"
Data="{StaticResource Icons.Tag}"/> Data="{StaticResource Icons.Tag}"/>
<TextBlock Grid.Column="1" <TextBlock Grid.Column="1"

View file

@ -65,7 +65,7 @@ namespace SourceGit.Views
} }
if (node.Tag != null) if (node.Tag != null)
CreateContent(new Thickness(0, 2, 0, 0), "Icons.Tag"); CreateContent(new Thickness(0, 0, 0, 0), "Icons.Tag");
else if (node.IsExpanded) else if (node.IsExpanded)
CreateContent(new Thickness(0, 2, 0, 0), "Icons.Folder.Open"); CreateContent(new Thickness(0, 2, 0, 0), "Icons.Folder.Open");
else else