|
11 | 11 | <ghfvs:InlineAnnotationViewModelDesigner /> |
12 | 12 | </d:DesignProperties.DataContext> |
13 | 13 |
|
14 | | - <Grid Margin="4"> |
| 14 | + <Grid Margin="0 0 0 4"> |
15 | 15 | <Grid.ColumnDefinitions> |
16 | 16 | <ColumnDefinition Width="4" /> |
17 | 17 | <ColumnDefinition Width="Auto" /> |
18 | 18 | </Grid.ColumnDefinitions> |
19 | 19 |
|
20 | 20 | <Grid.RowDefinitions> |
21 | 21 | <RowDefinition Height="Auto" /> |
22 | | - <RowDefinition Height="Auto" /> |
23 | | - <RowDefinition Height="Auto" /> |
24 | | - <RowDefinition Height="Auto" /> |
25 | | - <RowDefinition Height="Auto" /> |
26 | 22 | </Grid.RowDefinitions> |
27 | 23 |
|
28 | | - |
29 | 24 | <StackPanel Background="Blue" Grid.Row="0" Grid.Column="0" Grid.RowSpan="5" /> |
30 | 25 |
|
31 | | - <StackPanel Orientation="Horizontal" VerticalAlignment="Top" Grid.Row="0" Grid.Column="1"> |
32 | | - <ghfvs:OcticonImage Margin="0 0 0 0" MinWidth="20" Icon="search" Foreground="CornflowerBlue" Visibility="{Binding Model.AnnotationLevel, Converter={ghfvs:EqualsToVisibilityConverter Notice}}"/> |
33 | | - <ghfvs:OcticonImage Margin="0 0 0 0" MinWidth="20" Icon="alert" Foreground="#f1c647" Visibility="{Binding Model.AnnotationLevel, Converter={ghfvs:EqualsToVisibilityConverter Warning}}"/> |
34 | | - <ghfvs:OcticonImage Margin="0 0 0 0" MinWidth="20" Icon="x" Foreground="#cb2431" Visibility="{Binding Model.AnnotationLevel, Converter={ghfvs:EqualsToVisibilityConverter Failure}}"/> |
35 | | - |
36 | | - <TextBlock FontWeight="SemiBold" Margin="2 0"> |
37 | | - <Run Text="{Binding Model.CheckSuiteName, Mode=OneWay}"/> |
38 | | - <Run Text="/"/> |
39 | | - <Run Text="{Binding Model.CheckRunName, Mode=OneWay}"/> |
40 | | - </TextBlock> |
41 | | - </StackPanel> |
42 | | - |
43 | | - <TextBlock FontWeight="SemiBold" Margin="2 0" Grid.Column="1" Grid.Row="2"> |
44 | | - <Run Text="{Binding Model.Title, Mode=OneWay}"/> |
45 | | - </TextBlock> |
46 | | - |
47 | | - <TextBlock Margin="5 4 0 0" Grid.Column="1" Grid.Row="3"> |
48 | | - <Run Text="{Binding Model.Path, Mode=OneWay}"/> |
49 | | - <Run FontWeight="SemiBold" Text="{Binding Model.LineDescription, Mode=OneWay}"/> |
50 | | - </TextBlock> |
51 | | - |
52 | | - <markdig:MarkdownViewer Grid.Column="1" Grid.Row="4" Margin="5 0 0 0" FontSize="12" Markdown="{Binding Model.Message}"/> |
| 26 | + <Border Grid.Column="1" Padding="8"> |
| 27 | + <Grid> |
| 28 | + <Grid.ColumnDefinitions> |
| 29 | + <ColumnDefinition Width="Auto" /> |
| 30 | + <ColumnDefinition Width="*" /> |
| 31 | + </Grid.ColumnDefinitions> |
| 32 | + |
| 33 | + <Grid.RowDefinitions> |
| 34 | + <RowDefinition Height="Auto" /> |
| 35 | + <RowDefinition Height="Auto" /> |
| 36 | + <RowDefinition Height="Auto" /> |
| 37 | + <RowDefinition Height="Auto" /> |
| 38 | + </Grid.RowDefinitions> |
| 39 | + |
| 40 | + <ghfvs:OcticonImage Margin="0 0 0 0" Grid.Column="0" MinWidth="20" Icon="search" Foreground="CornflowerBlue" Visibility="{Binding Model.AnnotationLevel, Converter={ghfvs:EqualsToVisibilityConverter Notice}}"/> |
| 41 | + <ghfvs:OcticonImage Margin="0 0 0 0" Grid.Column="0" MinWidth="20" Icon="alert" Foreground="#f1c647" Visibility="{Binding Model.AnnotationLevel, Converter={ghfvs:EqualsToVisibilityConverter Warning}}"/> |
| 42 | + <ghfvs:OcticonImage Margin="0 0 0 0" Grid.Column="0" MinWidth="20" Icon="x" Foreground="#cb2431" Visibility="{Binding Model.AnnotationLevel, Converter={ghfvs:EqualsToVisibilityConverter Failure}}"/> |
| 43 | + |
| 44 | + <TextBlock Grid.Column="1" Grid.Row="0" Margin="4 0 0 0"> |
| 45 | + <Run Text="{Binding Model.Path, Mode=OneWay}"/> |
| 46 | + <Run FontWeight="SemiBold" Text="{Binding Model.LineDescription, Mode=OneWay}"/> |
| 47 | + </TextBlock> |
| 48 | + |
| 49 | + <TextBlock Grid.Column="1" Grid.Row="1" FontWeight="SemiBold" FontSize="14" Margin="4 8 0 8"> |
| 50 | + <Run Text="{Binding Model.CheckSuiteName, Mode=OneWay}"/> |
| 51 | + <Run Text="/"/> |
| 52 | + <Run Text="{Binding Model.CheckRunName, Mode=OneWay}"/> |
| 53 | + </TextBlock> |
| 54 | + |
| 55 | + <!-- |
| 56 | + <TextBlock Grid.Column="1" Grid.Row="2" FontWeight="SemiBold" Margin="4 0 0 0"> |
| 57 | + <Run Text="{Binding Model.Title, Mode=OneWay}"/> |
| 58 | + </TextBlock> |
| 59 | + --> |
| 60 | + |
| 61 | + <TextBlock Grid.Column="1" Grid.Row="3" Margin="4 0 0 0" FontFamily="Consolas" FontSize="12" Text="{Binding Model.Message}"/> |
| 62 | + </Grid> |
| 63 | + </Border> |
53 | 64 | </Grid> |
54 | 65 | </UserControl> |
55 | 66 |
|
0 commit comments