Skip to content

Commit

Permalink
Change interactiveBorder to fix popup preview (#23169) (#23313)
Browse files Browse the repository at this point in the history
Backport #23169

Close #23073. 
Used the solution as reference to the reply:
#23073 (comment)
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>
  • Loading branch information
GiteaBot and HesterG committed Mar 6, 2023
1 parent 13f304d commit 93fe020
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web_src/js/features/contextpopup.js
Expand Up @@ -31,6 +31,7 @@ export default function initContextPopups() {
createTippy(this, {
content: el,
interactive: true,
interactiveBorder: 5,
onShow: () => {
el.firstChild.dispatchEvent(new CustomEvent('us-load-context-popup', {detail: {owner, repo, index}}));
}
Expand Down

0 comments on commit 93fe020

Please sign in to comment.