From d1d15306d1c760b93d928c4eec09d01e1528b889 Mon Sep 17 00:00:00 2001 From: Giteabot Date: Mon, 6 Mar 2023 03:45:43 -0500 Subject: [PATCH] Change interactiveBorder to fix popup preview (#23169) (#23314) 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 Co-authored-by: Lunny Xiao --- web_src/js/features/contextpopup.js | 1 + 1 file changed, 1 insertion(+) diff --git a/web_src/js/features/contextpopup.js b/web_src/js/features/contextpopup.js index 61f7120908..7a40e3b8d5 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('us-load-context-popup', {detail: {owner, repo, index}})); }