Skip to content

Commit

Permalink
Change interactiveBorder to fix popup preview (go-gitea#23169) (go-gi…
Browse files Browse the repository at this point in the history
…tea#23313)

Backport go-gitea#23169

Close go-gitea#23073. 
Used the solution as reference to the reply:
go-gitea#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 authored 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
Original file line number Diff line number Diff line change
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.