aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js
diff options
context:
space:
mode:
authorGiteabot <teabot@gitea.io>2023-03-06 11:32:47 -0500
committerGitHub <noreply@github.com>2023-03-06 10:32:47 -0600
commit93fe0202cb624edb151dfb93b4fb66951be54e74 (patch)
treea0fc8d946acb5342f86baba3d10d5602f7a66b05 /web_src/js
parent13f304d89eb019e95e6789304294dac344903c67 (diff)
downloadgitea-93fe0202cb624edb151dfb93b4fb66951be54e74.tar.gz
gitea-93fe0202cb624edb151dfb93b4fb66951be54e74.zip
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>
Diffstat (limited to 'web_src/js')
-rw-r--r--web_src/js/features/contextpopup.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/web_src/js/features/contextpopup.js b/web_src/js/features/contextpopup.js
index d29da6d951..90f2f271da 100644
--- a/web_src/js/features/contextpopup.js
+++ b/web_src/js/features/contextpopup.js
@@ -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}}));
}