Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 818a4fc

Browse files
donokudaStanleyGoldman
authored andcommitted
Make the line description a hyperlink
1 parent 829de23 commit 818a4fc

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/GitHub.VisualStudio.UI/Views/GitHubPane/PullRequestAnnotationsView.xaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,15 @@
7272
</StackPanel>
7373

7474
<StackPanel Margin="8,0,0,0" Grid.Column="1">
75-
<TextBlock FontFamily="Consolas" Foreground="{DynamicResource VsBrush.GrayText}" Grid.Row="0">
76-
<Run Text="Line" />
77-
<Run Text="{Binding LineDescription, Mode=OneWay}"/>
75+
<TextBlock FontWeight="SemiBold" Grid.Row="0">
76+
<Run Text="{Binding Annotation.Title, Mode=OneWay}"/>
7877
</TextBlock>
7978

80-
<TextBlock FontWeight="SemiBold" Grid.Row="1">
81-
<Run Text="{Binding Annotation.Title, Mode=OneWay}"/>
79+
<TextBlock FontFamily="Consolas" Foreground="{DynamicResource VsBrush.GrayText}" Grid.Row="1" Visibility="{Binding IsFileInPullRequest, Converter={ghfvs:BooleanToVisibilityConverter}}">
80+
<Hyperlink Command="{Binding OpenAnnotation}">
81+
<Run Text="Line" />
82+
<Run Text="{Binding LineDescription, Mode=OneWay}"/>
83+
</Hyperlink>
8284
</TextBlock>
8385

8486
<markdig:MarkdownViewer Grid.Column="1" Grid.Row="2"

0 commit comments

Comments
 (0)