(avatar: HTMLElement)
| 98 | } |
| 99 | |
| 100 | function addButtonIssue(avatar: HTMLElement): void { |
| 101 | const isHidden = !elementExists('.markdown-body', avatar.parentElement!); |
| 102 | if (isHidden) { |
| 103 | return; |
| 104 | } |
| 105 | |
| 106 | avatar.style.height = 'auto'; |
| 107 | avatar.classList.add('react-view'); |
| 108 | wrap(avatar, <div className="avatar-parent-child d-none d-md-block" />); |
| 109 | |
| 110 | addButton(avatar); |
| 111 | } |
| 112 | |
| 113 | async function init(signal: AbortSignal): Promise<void> { |
| 114 | delegate('button.rgh-quick-mention', 'click', mentionUser, {signal}); |