mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 03:29:40 +00:00 
			
		
		
		
	* Fix 'add code comment' button being invisible all the time
* Fix off-center icon
* Remove old JS hover hack
* Show on full-line hover
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
(cherry picked from commit 7f7e7f3ca4)
			
			
This commit is contained in:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							350c10fe5b
						
					
				
				
					commit
					cbdbae2925
				
			| @@ -1236,16 +1236,6 @@ function initPullRequestReview() { | ||||
|       $(this).closest('.menu').toggle('visible'); | ||||
|     }); | ||||
|  | ||||
|   $('.code-view .lines-code,.code-view .lines-num') | ||||
|     .on('mouseenter', function () { | ||||
|       const parent = $(this).closest('td'); | ||||
|       $(this).closest('tr').addClass( | ||||
|         parent.hasClass('lines-num-old') || parent.hasClass('lines-code-old') ? 'focus-lines-old' : 'focus-lines-new' | ||||
|       ); | ||||
|     }) | ||||
|     .on('mouseleave', function () { | ||||
|       $(this).closest('tr').removeClass('focus-lines-new focus-lines-old'); | ||||
|     }); | ||||
|   $('.add-code-comment').on('click', function (e) { | ||||
|     if ($(e.target).hasClass('btn-add-single')) return; // https://github.com/go-gitea/gitea/issues/4745 | ||||
|     e.preventDefault(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user