|
44 | 44 | <StackPanel Orientation="Horizontal">
|
45 | 45 | <Path Width="12" Height="12" Data="{StaticResource Icons.Branch}"/>
|
46 | 46 | <TextBlock FontWeight="Bold" VerticalAlignment="Center" Margin="4,0,0,0" Text="{Binding FriendlyName}"/>
|
47 |
| - <TextBlock Classes="primary" FontSize="12" Margin="4,0" VerticalAlignment="Center"> |
48 |
| - <TextBlock.IsVisible> |
49 |
| - <MultiBinding Converter="{x:Static BoolConverters.And}"> |
50 |
| - <Binding Path="IsCurrent" Converter="{x:Static BoolConverters.Not}"/> |
51 |
| - <Binding Path="WorktreePath" Converter="{x:Static StringConverters.IsNotNullOrEmpty}"/> |
52 |
| - </MultiBinding> |
53 |
| - </TextBlock.IsVisible> |
54 |
| - <Run Text="("/> |
55 |
| - <Run Text="{Binding WorktreePath, Mode=OneWay}" TextDecorations="Underline"/> |
56 |
| - <Run Text=")"/> |
57 |
| - </TextBlock> |
58 | 47 | <Border Background="Green" Margin="4,0,0,0" CornerRadius="4" VerticalAlignment="Center" IsVisible="{Binding !IsLocal}">
|
59 | 48 | <TextBlock Text="{DynamicResource Text.BranchTree.Remote}" FontSize="12" Classes="primary" Margin="4,0" Foreground="White" VerticalAlignment="Center"/>
|
60 | 49 | </Border>
|
61 | 50 | </StackPanel>
|
62 | 51 |
|
63 |
| - <StackPanel Orientation="Horizontal" |
64 |
| - Margin="0,8,0,0" |
65 |
| - IsVisible="{Binding Upstream, Converter={x:Static StringConverters.IsNotNullOrEmpty}}"> |
66 |
| - <TextBlock Classes="info_label" |
| 52 | + <Grid RowDefinitions="Auto,Auto" ColumnDefinitions="Auto,Auto" Margin="0,8,0,0" IsVisible="{Binding IsLocal, Mode=OneWay}"> |
| 53 | + <TextBlock Grid.Row="0" Grid.Column="0" |
| 54 | + Classes="info_label" |
67 | 55 | HorizontalAlignment="Left" VerticalAlignment="Center"
|
68 | 56 | Text="{DynamicResource Text.BranchTree.Tracking}"/>
|
69 |
| - |
70 |
| - <TextBlock Margin="6,0,0,0" |
71 |
| - Text="{Binding Upstream, Mode=OneWay, Converter={x:Static c:StringConverters.ToFriendlyUpstream}}"/> |
72 |
| - |
73 |
| - <Border Background="OrangeRed" Margin="4,0,0,0" CornerRadius="4" VerticalAlignment="Center" IsVisible="{Binding IsUpstreamGone}"> |
74 |
| - <TextBlock Text="{DynamicResource Text.BranchTree.InvalidUpstream}" FontSize="12" Classes="primary" Margin="4,1" Foreground="White" VerticalAlignment="Center"/> |
75 |
| - </Border> |
76 |
| - </StackPanel> |
| 57 | + <StackPanel Grid.Row="0" Grid.Column="1" |
| 58 | + Margin="8,0,0,0" |
| 59 | + Orientation="Horizontal"> |
| 60 | + <TextBlock Text="{Binding Upstream, Mode=OneWay, Converter={x:Static c:StringConverters.ToFriendlyUpstream}}"/> |
| 61 | + |
| 62 | + <Border Background="OrangeRed" Margin="4,0,0,0" CornerRadius="4" VerticalAlignment="Center" IsVisible="{Binding IsUpstreamGone}"> |
| 63 | + <TextBlock Text="{DynamicResource Text.BranchTree.InvalidUpstream}" FontSize="12" Classes="primary" Margin="4,1" Foreground="White" VerticalAlignment="Center"/> |
| 64 | + </Border> |
| 65 | + </StackPanel> |
| 66 | + |
| 67 | + <TextBlock Grid.Row="1" Grid.Column="0" |
| 68 | + Classes="info_label" |
| 69 | + Margin="0,4,0,0" |
| 70 | + HorizontalAlignment="Left" VerticalAlignment="Center" |
| 71 | + Text="{DynamicResource Text.BranchTree.Worktree}" |
| 72 | + IsVisible="{Binding WorktreePath, Converter={x:Static StringConverters.IsNotNullOrEmpty}}"/> |
| 73 | + <TextBlock Grid.Row="1" Grid.Column="1" |
| 74 | + Margin="8,4,0,0" |
| 75 | + Text="{Binding WorktreePath, Mode=OneWay}" |
| 76 | + IsVisible="{Binding WorktreePath, Converter={x:Static StringConverters.IsNotNullOrEmpty}}"/> |
| 77 | + </Grid> |
77 | 78 | </StackPanel>
|
78 | 79 | </DataTemplate>
|
79 | 80 |
|
|
0 commit comments