Skip to content

Commit bc1cd33

Browse files
silverwindclaude
andcommitted
Skip ref-issue popup on issue/PR lists, milestones, and project boards
Matches GitHub: no popup on listings where the same info is already rendered. Co-Authored-By: Claude (Opus 4.7) <noreply@anthropic.com>
1 parent 8944b32 commit bc1cd33

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

web_src/js/features/ref-issue.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export function initRefIssueContextPopup() {
5454
const href = link.getAttribute('href')!;
5555
if (!parseIssueHref(href).ownerName) return; // not an issue/PR link
5656
if (link.closest('.ref-issue-popup')) return; // avoid nesting
57+
if (link.closest('#issue-list, #project-board, .milestone-issue-list')) return; // skip issue/PR listings — redundant with on-page info
5758
if (getAttachedTippyInstance(link)) return; // already has tooltip
5859
link.setAttribute('data-ref-issue-popup', ''); // prevent parallel fetches
5960

0 commit comments

Comments
 (0)