mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	make commit-statuses popup can be shown correctly. (#17447)
Close #17443 Maybe we do not need to backport this PR, the bug doesn't break daily usage. After the fix, the commit statuses popup can show a lot of lines with scroll bars: 
This commit is contained in:
		| @@ -267,10 +267,13 @@ export 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, | ||||
|       }); | ||||
|   }); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user