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

Commit ee438f7

Browse files
committed
Add tooltip for hover and trim author text
1 parent 42d9130 commit ee438f7

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/GitHub.VisualStudio/UI/Views/Controls/PullRequestListItem.xaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@
126126
FontFamily="Segoe UI"
127127
FontSize="12"
128128
Margin="0,0,10,0"
129+
TextTrimming="CharacterEllipsis"
129130
Foreground="{DynamicResource GitHubVsGrayText}">
130131
<TextBlock.Text>
131132
<MultiBinding StringFormat="{} {0} {1} {2} {3}">
@@ -135,6 +136,21 @@
135136
<Binding Path="Author.Login" />
136137
</MultiBinding>
137138
</TextBlock.Text>
139+
140+
<TextBlock.ToolTip>
141+
<ToolTip>
142+
<TextBlock>
143+
<TextBlock.Text>
144+
<MultiBinding StringFormat="{} {0} {1} {2} {3}">
145+
<Binding Source="{x:Static i18n:Resources.prOpenedText}" />
146+
<Binding Converter="{StaticResource DurationToStringConverter}" Path="UpdatedAt" />
147+
<Binding Source="{x:Static i18n:Resources.prOpenedByText}" />
148+
<Binding Path="Author.Login" />
149+
</MultiBinding>
150+
</TextBlock.Text>
151+
</TextBlock>
152+
</ToolTip>
153+
</TextBlock.ToolTip>
138154
</TextBlock>
139155
</Grid>
140156
</Grid>

0 commit comments

Comments
 (0)