Skip to content

Commit

Permalink
Fix issue and commit status popup padding (go-gitea#25254)
Browse files Browse the repository at this point in the history
Close go-gitea#25249

Use "dialog" for the role



![image](https://github.com/go-gitea/gitea/assets/2114189/2b5b7552-48bc-4ecf-947b-34917232cff9)

---------

Co-authored-by: silverwind <[email protected]>
  • Loading branch information
2 people authored and GiteaBot committed Jun 15, 2023
1 parent b45ea02 commit 1b54aad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions web_src/js/features/contextpopup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}}));
Expand Down
1 change: 1 addition & 0 deletions web_src/js/features/repo-commit.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export function initCommitStatuses() {
content: this.nextElementSibling,
placement: top ? 'top-start' : 'bottom-start',
interactive: true,
role: 'dialog',
});
});
}

0 comments on commit 1b54aad

Please sign in to comment.