aboutsummaryrefslogtreecommitdiff
path: root/web_src
diff options
context:
space:
mode:
authorHester Gong2023-03-05 23:40:50 +0800
committerGitHub2023-03-05 23:40:50 +0800
commitea7f0d6fcfe9567cac8151536b36450de8645e88 (patch)
treed15e846f1d0de59d47fe24dbfcf8584e3f720cba /web_src
parent21a1d7691124dc5c1fca0ecab3de852a8671f4b8 (diff)
Change interactiveBorder to fix popup preview (#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: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'web_src')
-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 21e6bec31..8e0ef92bd 100644
--- a/web_src/js/features/contextpopup.js
+++ b/web_src/js/features/contextpopup.js
@@ -31,6 +31,7 @@ export function initContextPopups() {
createTippy(this, {
content: el,
interactive: true,
+ interactiveBorder: 5,
onShow: () => {
el.firstChild.dispatchEvent(new CustomEvent('ce-load-context-popup', {detail: {owner, repo, index}}));
}