Skip to content

Commit 03638f9

Browse files
authored
Add tooltip to issue reference (#22913)
Previously, you had no idea what you are copying with the issue reference button for either long repo names, user names, or issue indexes. Now, it is simply a bit redundant for short references but a lot easier for long references. ## Before ![image](https://user-images.githubusercontent.com/51889757/218995943-3b609ee9-4138-49ce-99b1-73fb1ea80280.png) ## After ![image](https://user-images.githubusercontent.com/51889757/218996119-4b6bf6c1-abfa-4618-81ca-a72914e73eb8.png)
1 parent aa1d953 commit 03638f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: templates/repo/issue/view_content/sidebar.tmpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -577,8 +577,8 @@
577577

578578
<div class="ui divider"></div>
579579
<div class="ui equal width compact grid">
580-
<div class="row gt-ac">
581-
{{$issueReferenceLink := printf "%s#%d" .Issue.Repo.FullName .Issue.Index}}
580+
{{$issueReferenceLink := printf "%s#%d" .Issue.Repo.FullName .Issue.Index}}
581+
<div class="row gt-ac tooltip" data-content="{{$issueReferenceLink}}">
582582
<span class="text column truncate">{{.locale.Tr "repo.issues.reference_link" $issueReferenceLink}}</span>
583583
<button class="ui two wide button column gt-p-3" data-clipboard-text="{{$issueReferenceLink}}">{{svg "octicon-copy" 14}}</button>
584584
</div>

0 commit comments

Comments
 (0)