Change interactiveBorder to fix popup preview (#23169) (#23313)

Backport #23169

Close #23073. 
Used the solution as reference to the reply:
https://github.com/go-gitea/gitea/issues/23073#issuecomment-1440124609
Here made the change inside the `contextpopup.js` because this is where
the popup component is created and tippy configuration is given.

Co-authored-by: Hester Gong <hestergong@gmail.com>
This commit is contained in:
Giteabot 2023-03-06 11:32:47 -05:00 committed by GitHub
parent 13f304d89e
commit 93fe0202cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -31,6 +31,7 @@ export default function initContextPopups() {
createTippy(this, { createTippy(this, {
content: el, content: el,
interactive: true, interactive: true,
interactiveBorder: 5,
onShow: () => { onShow: () => {
el.firstChild.dispatchEvent(new CustomEvent('us-load-context-popup', {detail: {owner, repo, index}})); el.firstChild.dispatchEvent(new CustomEvent('us-load-context-popup', {detail: {owner, repo, index}}));
} }