From 8e0316c321f6070c20ab5d8c412185fb9510977e Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Thu, 15 Jun 2023 16:09:16 +0800 Subject: [PATCH] Fix issue and commit status popup padding (#25254) Close #25249 Use "dialog" for the role ![image](https://github.com/go-gitea/gitea/assets/2114189/2b5b7552-48bc-4ecf-947b-34917232cff9) --------- Co-authored-by: silverwind --- web_src/js/features/contextpopup.js | 1 + web_src/js/features/repo-commit.js | 1 + 2 files changed, 2 insertions(+) diff --git a/web_src/js/features/contextpopup.js b/web_src/js/features/contextpopup.js index 5c5733b35ab3..23a620b8a23c 100644 --- a/web_src/js/features/contextpopup.js +++ b/web_src/js/features/contextpopup.js @@ -34,6 +34,7 @@ export function attachRefIssueContextPopup(refIssues) { content: el, placement: 'top-start', interactive: true, + role: 'dialog', interactiveBorder: 5, onShow: () => { el.firstChild.dispatchEvent(new CustomEvent('ce-load-context-popup', {detail: {owner, repo, index}})); diff --git a/web_src/js/features/repo-commit.js b/web_src/js/features/repo-commit.js index d22aa8e980bd..7e4e40806b6c 100644 --- a/web_src/js/features/repo-commit.js +++ b/web_src/js/features/repo-commit.js @@ -65,6 +65,7 @@ export function initCommitStatuses() { content: this.nextElementSibling, placement: top ? 'top-start' : 'bottom-start', interactive: true, + role: 'dialog', }); }); }