Skip to content

Commit 8628692

Browse files
committed
use top/bottom positioning
1 parent 0a9f883 commit 8628692

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web_src/js/features/repo-commit.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ export function initRepoCommitLastCommitLoader() {
5858

5959
export function initCommitStatuses() {
6060
$('.commit-statuses-trigger').each(function () {
61-
const positionRight = $('.repository.file.list').length > 0 || $('.repository.diff').length > 0;
61+
const top = $('.repository.file.list').length > 0 || $('.repository.diff').length > 0;
6262

6363
createTippy(this, {
6464
trigger: 'click',
6565
content: this.nextSibling,
66-
placement: positionRight ? 'right' : 'left',
66+
placement: top ? 'top-start' : 'bottom-start',
6767
interactive: true,
6868
});
6969
});

0 commit comments

Comments
 (0)