mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Add scroll-margin-top to account for sticky header (#16269)
Fixes #16263 Co-authored-by: zeripath <art27@cantab.net>
This commit is contained in:
		@@ -1343,7 +1343,7 @@ function initPullRequestReview() {
 | 
			
		||||
        $(`#code-comments-${id}`).removeClass('hide');
 | 
			
		||||
        $(`#code-preview-${id}`).removeClass('hide');
 | 
			
		||||
        $(`#hide-outdated-${id}`).removeClass('hide');
 | 
			
		||||
        $(window).scrollTop(commentDiv.offset().top);
 | 
			
		||||
        commentDiv[0].scrollIntoView();
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 
 | 
			
		||||
@@ -173,3 +173,11 @@ a.blob-excerpt:hover {
 | 
			
		||||
.review-box > .segment {
 | 
			
		||||
  border: none !important;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pull.files.diff [id] {
 | 
			
		||||
  scroll-margin-top: 99px;
 | 
			
		||||
 | 
			
		||||
  @media @mediaMdAndDown {
 | 
			
		||||
    scroll-margin-top: 130px;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user