|
82 | 82 |
|
83 | 83 | <Rectangle DockPanel.Dock="Top" Style="{StaticResource Separator}" Height="2" Margin="0 16 0 8"/> |
84 | 84 |
|
85 | | - <Border BorderBrush="{DynamicResource GitHubHeaderSeparatorBrush}" BorderThickness="1" Margin="0 4"> |
86 | | - <StackPanel Orientation="Vertical"> |
87 | | - <Border Padding="8" Background="{DynamicResource GitHubBranchNameBackgroundBrush}" BorderBrush="{DynamicResource GitHubHeaderSeparatorBrush}" BorderThickness="0 0 0 1"> |
88 | | - <StackPanel Orientation="Horizontal" DockPanel.Dock="Left" > |
89 | | - <v:ActorAvatarView Width="16" |
90 | | - Height="16" |
91 | | - ViewModel="{Binding Author}"/> |
| 85 | + <Grid> |
| 86 | + <Grid.ColumnDefinitions> |
| 87 | + <ColumnDefinition Width="45" /> |
| 88 | + <ColumnDefinition Width="*" /> |
| 89 | + </Grid.ColumnDefinitions> |
92 | 90 |
|
93 | | - <TextBlock Foreground="{DynamicResource GitHubVsToolWindowText}" Margin="4 0"> |
94 | | - <Run FontWeight="Bold" Text="{Binding Author.Login}" /> |
95 | | - <Run Text="commented" /> |
96 | | - </TextBlock> |
97 | | - <ui:GitHubActionLink Content="{Binding CreatedAt, Converter={ui:DurationToStringConverter}}" |
98 | | - Command="{Binding OpenOnGitHub}" |
99 | | - Foreground="{DynamicResource GitHubVsToolWindowText}" |
100 | | - Opacity="0.75" /> |
101 | | - <Border Background="{DynamicResource VsBrush.InfoBackground}" |
102 | | - BorderBrush="{DynamicResource VsBrush.AccentPale}" |
103 | | - BorderThickness="1" |
104 | | - CornerRadius="3" |
105 | | - Padding="2 1" |
106 | | - Visibility="{Binding IsPending, Converter={ui:BooleanToVisibilityConverter}, FallbackValue=Collapsed}"> |
107 | | - <TextBlock FontSize="10" Text="{x:Static ghfvs:Resources.Pending}" /> |
108 | | - </Border> |
109 | | - </StackPanel> |
110 | | - </Border> |
| 91 | + <v:ActorAvatarView Width="40" |
| 92 | + Height="40" |
| 93 | + VerticalAlignment="Top" |
| 94 | + Margin="0 0 5 0" |
| 95 | + ViewModel="{Binding Author}" /> |
111 | 96 |
|
112 | | - <markdig:MarkdownViewer Name="bodyMarkdown" Margin="8" Foreground="{DynamicResource VsBrush.WindowText}" Markdown="{Binding Body}"/> |
113 | | - </StackPanel> |
114 | | - </Border> |
| 97 | + <Border BorderBrush="{DynamicResource GitHubHeaderSeparatorBrush}" BorderThickness="1" Margin="0 4" |
| 98 | + Grid.Column="1"> |
| 99 | + <StackPanel Orientation="Vertical"> |
| 100 | + <Border Padding="8" Background="{DynamicResource GitHubBranchNameBackgroundBrush}" BorderBrush="{DynamicResource GitHubHeaderSeparatorBrush}" BorderThickness="0 0 0 1"> |
| 101 | + <StackPanel Orientation="Horizontal" DockPanel.Dock="Left" > |
| 102 | + <TextBlock Foreground="{DynamicResource GitHubVsToolWindowText}" Margin="4"> |
| 103 | + <Run FontWeight="Bold" Text="{Binding Author.Login}" /> |
| 104 | + <Run Text="commented" /> |
| 105 | + </TextBlock> |
| 106 | + <ui:GitHubActionLink Content="{Binding CreatedAt, Converter={ui:DurationToStringConverter}}" |
| 107 | + Command="{Binding OpenOnGitHub}" |
| 108 | + Foreground="{DynamicResource GitHubVsToolWindowText}" |
| 109 | + Opacity="0.75" /> |
| 110 | + <Border Background="{DynamicResource VsBrush.InfoBackground}" |
| 111 | + BorderBrush="{DynamicResource VsBrush.AccentPale}" |
| 112 | + BorderThickness="1" |
| 113 | + CornerRadius="3" |
| 114 | + Padding="2 1" |
| 115 | + Visibility="{Binding IsPending, Converter={ui:BooleanToVisibilityConverter}, FallbackValue=Collapsed}"> |
| 116 | + <TextBlock FontSize="10" Text="{x:Static ghfvs:Resources.Pending}" /> |
| 117 | + </Border> |
| 118 | + </StackPanel> |
| 119 | + </Border> |
| 120 | + |
| 121 | + <markdig:MarkdownViewer Name="bodyMarkdown" Margin="8" Foreground="{DynamicResource VsBrush.WindowText}" Markdown="{Binding Body}"/> |
| 122 | + </StackPanel> |
| 123 | + </Border> |
| 124 | + </Grid> |
115 | 125 |
|
116 | 126 | <ItemsControl Name="timeline" ItemsSource="{Binding Timeline}"> |
117 | 127 | <ItemsControl.Resources> |
|
0 commit comments