|
27 | 27 | </Control.Resources> |
28 | 28 |
|
29 | 29 | <ScrollViewer VerticalScrollBarVisibility="Auto"> |
30 | | - <StackPanel> |
31 | | - <StackPanel DockPanel.Dock="Top" Margin="8 0" Orientation="Vertical"> |
32 | | - <TextBlock FontSize="16" VerticalAlignment="Center"> |
33 | | - <Run FontWeight="SemiBold" Text="{Binding CheckSuiteName, Mode=OneWay}"/> |
34 | | - <Run Text="/"/> |
35 | | - <Run FontWeight="SemiBold" Text="{Binding CheckRunName, Mode=OneWay}"/> |
36 | | - |
37 | | - <Run>for</Run> |
38 | | - |
39 | | - <Hyperlink Command="{Binding NavigateToPullRequest}"> |
40 | | - <Run>#</Run><Run Text="{Binding PullRequestNumber, Mode=OneWay}"/> |
41 | | - </Hyperlink> |
42 | | - </TextBlock> |
43 | | - |
44 | | - <TextBlock Foreground="{DynamicResource GitHubVsGrayText}" |
45 | | - Margin="0" |
46 | | - Text="{Binding PullRequestTitle}" |
47 | | - TextWrapping="Wrap"/> |
48 | | - |
49 | | - <markdig:MarkdownViewer FontFamily="Consolas" |
50 | | - Visibility="{Binding CheckRunSummary, Converter={ghfvs:NullOrWhitespaceToVisibilityConverter}}" |
51 | | - Markdown="{Binding CheckRunSummary}" /> |
52 | | - |
53 | | - <TextBlock FontFamily="Consolas" |
54 | | - Foreground="{DynamicResource VsBrush.GrayText}" |
55 | | - Visibility="{Binding CheckRunText, Converter={ghfvs:NullOrWhitespaceToVisibilityConverter}}"> |
56 | | - <Run Text="{Binding CheckRunText, Mode=OneWay}"/> |
57 | | - </TextBlock> |
58 | | - |
59 | | - <Rectangle Fill="{DynamicResource GitHubHeaderSeparatorBrush}" Height="1" Margin="-8 4"/> |
60 | | - |
61 | | - <ItemsControl Margin="-4 0" ItemsSource="{Binding AnnotationsDictionary}"> |
| 30 | + <DockPanel> |
| 31 | + <StackPanel DockPanel.Dock="Top" Orientation="Vertical"> |
| 32 | + <StackPanel Margin="8 0 8 4"> |
| 33 | + <TextBlock FontSize="16" VerticalAlignment="Center"> |
| 34 | + <Run FontWeight="SemiBold" Text="{Binding CheckSuiteName, Mode=OneWay}"/> |
| 35 | + <Run Text="/"/> |
| 36 | + <Run FontWeight="SemiBold" Text="{Binding CheckRunName, Mode=OneWay}"/> |
| 37 | + |
| 38 | + <Run>for</Run> |
| 39 | + |
| 40 | + <Hyperlink Command="{Binding NavigateToPullRequest}"> |
| 41 | + <Run>#</Run><Run Text="{Binding PullRequestNumber, Mode=OneWay}"/> |
| 42 | + </Hyperlink> |
| 43 | + </TextBlock> |
| 44 | + |
| 45 | + <TextBlock Foreground="{DynamicResource GitHubVsGrayText}" |
| 46 | + Margin="0" |
| 47 | + Text="{Binding PullRequestTitle}" |
| 48 | + TextWrapping="Wrap"/> |
| 49 | + </StackPanel> |
| 50 | + |
| 51 | + <Rectangle Fill="{DynamicResource GitHubHeaderSeparatorBrush}" Height="1" Margin="0 4"/> |
| 52 | + |
| 53 | + <Expander Header="Body" Margin="0 4" |
| 54 | + FontWeight="SemiBold" |
| 55 | + Visibility="{Binding CheckRunSummary, Converter={ghfvs:NullOrWhitespaceToVisibilityConverter}}"> |
| 56 | + <markdig:MarkdownViewer Margin="21 0 8 0" FontWeight="Normal" Markdown="{Binding CheckRunSummary}" /> |
| 57 | + </Expander> |
| 58 | + |
| 59 | + <Expander Margin="0 4" |
| 60 | + Visibility="{Binding CheckRunText, Converter={ghfvs:NullOrWhitespaceToVisibilityConverter}}"> |
| 61 | + <Expander.Header> |
| 62 | + <TextBlock FontWeight="SemiBold" Text="Details" /> |
| 63 | + </Expander.Header> |
| 64 | + <TextBlock Margin="21 0 8 0" FontFamily="Consolas" |
| 65 | + Foreground="{DynamicResource VsBrush.GrayText}"> |
| 66 | + <Run Text="{Binding CheckRunText, Mode=OneWay}"/> |
| 67 | + </TextBlock> |
| 68 | + </Expander> |
| 69 | + |
| 70 | + <Rectangle Fill="{DynamicResource GitHubHeaderSeparatorBrush}" Height="1" Margin="0 4"/> |
| 71 | + |
| 72 | + <ItemsControl ItemsSource="{Binding AnnotationsDictionary}"> |
62 | 73 | <ItemsControl.ItemTemplate> |
63 | 74 | <DataTemplate> |
64 | | - <StackPanel> |
| 75 | + <StackPanel Margin="0 4"> |
65 | 76 | <Expander> |
66 | 77 | <Expander.Header> |
67 | | - <Label Foreground="{DynamicResource VsBrush.WindowText}" Content="{Binding Key}" FontWeight="SemiBold" ToolTip="{Binding Key}" /> |
| 78 | + <TextBlock Margin="0 0 0 4" Foreground="{DynamicResource VsBrush.WindowText}" Text="{Binding Key}" FontWeight="SemiBold" /> |
68 | 79 | </Expander.Header> |
69 | 80 |
|
70 | 81 | <ItemsControl ItemsSource="{Binding Value}"> |
71 | 82 | <ItemsControl.ItemTemplate> |
72 | 83 | <DataTemplate> |
73 | | - <Grid Margin="26 0 0 8" > |
| 84 | + <Grid Margin="22 0 0 8" > |
74 | 85 | <Grid.ColumnDefinitions> |
75 | | - <ColumnDefinition Width="16" /> |
| 86 | + <ColumnDefinition Width="20" /> |
76 | 87 | <ColumnDefinition Width="*" /> |
77 | 88 | </Grid.ColumnDefinitions> |
78 | 89 |
|
79 | | - <StackPanel Grid.Column="0" VerticalAlignment="Center"> |
| 90 | + <StackPanel Grid.Column="0" HorizontalAlignment="Left" VerticalAlignment="Center"> |
80 | 91 | <imaging:CrispImage Width="16" Height="16" Moniker="{x:Static catalog:KnownMonikers.StatusInformation}" Visibility="{Binding Annotation.AnnotationLevel, Converter={ghfvs:EqualsToVisibilityConverter Notice}}"/> |
81 | 92 | <imaging:CrispImage Width="16" Height="16" Moniker="{x:Static catalog:KnownMonikers.StatusWarning}" Visibility="{Binding Annotation.AnnotationLevel, Converter={ghfvs:EqualsToVisibilityConverter Warning}}"/> |
82 | 93 | <imaging:CrispImage Width="16" Height="16" Moniker="{x:Static catalog:KnownMonikers.StatusError}" Visibility="{Binding Annotation.AnnotationLevel, Converter={ghfvs:EqualsToVisibilityConverter Failure}}"/> |
83 | 94 | </StackPanel> |
84 | 95 |
|
85 | 96 | <StackPanel Margin="8,0,0,0" Grid.Column="1"> |
86 | | - <TextBlock FontWeight="SemiBold"> |
| 97 | + <TextBlock FontWeight="SemiBold" TextWrapping="Wrap"> |
87 | 98 | <Run Text="{Binding Annotation.Title, Mode=OneWay}"/> |
88 | 99 | </TextBlock> |
89 | 100 |
|
|
115 | 126 | </ItemsControl.ItemTemplate> |
116 | 127 | </ItemsControl> |
117 | 128 | </StackPanel> |
118 | | - </StackPanel> |
| 129 | + </DockPanel> |
119 | 130 | </ScrollViewer> |
120 | 131 |
|
121 | 132 | </UserControl> |
|
0 commit comments