Skip to content

Commit

Permalink
评论、视频详情简介中的链接添加tooltip显示内容
Browse files Browse the repository at this point in the history
  • Loading branch information
ywmoyue committed May 18, 2024
1 parent febe5f9 commit 330e715
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BiliLite.UWP/Extensions/StringExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ private static string HandelUrl(string input)
var data =
@"<InlineUIContainer><HyperlinkButton x:Name=""btn"" Command=""{Binding LaunchUrlCommand}"" IsEnabled=""True"" Margin=""2 -3 2 -5"" Padding=""0 2 0 0"" " +
string.Format(
@"CommandParameter=""{0}"" ><TextBlock>🔗网页链接</TextBlock></HyperlinkButton></InlineUIContainer>",
@"ToolTipService.ToolTip=""{0}"" CommandParameter=""{0}"" ><TextBlock>🔗网页链接</TextBlock></HyperlinkButton></InlineUIContainer>",
item.Groups[0].Value.IsUrl() ? item.Groups[0].Value : ApiHelper.NOT_FOUND_URL);
input = input.Replace(item.Groups[0].Value, data);
}
Expand Down

0 comments on commit 330e715

Please sign in to comment.