|
|
|
@ -788,10 +788,13 @@ async function initRepository() {
|
|
|
|
|
|
|
|
|
|
// Commit statuses
|
|
|
|
|
$('.commit-statuses-trigger').each(function () { |
|
|
|
|
const positionRight = $('.repository.file.list').length > 0 || $('.repository.diff').length > 0; |
|
|
|
|
const popupPosition = positionRight ? 'right center' : 'left center'; |
|
|
|
|
$(this) |
|
|
|
|
.popup({ |
|
|
|
|
on: 'click', |
|
|
|
|
position: ($('.repository.file.list').length > 0 ? 'right center' : 'left center'), |
|
|
|
|
lastResort: popupPosition, // prevent error message "Popup does not fit within the boundaries of the viewport"
|
|
|
|
|
position: popupPosition, |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|