Skip to content

Commit

Permalink
Change interactiveBorder to fix popup preview (go-gitea#23169)
Browse files Browse the repository at this point in the history
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: Lunny Xiao <xiaolunwen@gmail.com>
  • Loading branch information
2 people authored and GiteaBot committed Mar 5, 2023
1 parent b6eea68 commit e43c119
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 e43c119

Please sign in to comment.