File tree 3 files changed +10
-2
lines changed
templates/repo/issue/view_content 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 462
462
{{ range $filename, $lines := .Review.CodeComments}}
463
463
{{range $line, $comms := $lines}}
464
464
<div class="ui segments">
465
- <div class="ui segment py-3 df ac sb">
465
+ <div class="ui segment py-3 df ac sb word-break ">
466
466
{{$invalid := (index $comms 0).Invalidated}}
467
467
{{$resolved := (index $comms 0).IsResolved}}
468
468
{{$resolveDoer := (index $comms 0).ResolveDoer}}
Original file line number Diff line number Diff line change @@ -1343,7 +1343,7 @@ function initPullRequestReview() {
1343
1343
$ ( `#code-comments-${ id } ` ) . removeClass ( 'hide' ) ;
1344
1344
$ ( `#code-preview-${ id } ` ) . removeClass ( 'hide' ) ;
1345
1345
$ ( `#hide-outdated-${ id } ` ) . removeClass ( 'hide' ) ;
1346
- $ ( window ) . scrollTop ( commentDiv . offset ( ) . top ) ;
1346
+ commentDiv [ 0 ] . scrollIntoView ( ) ;
1347
1347
}
1348
1348
}
1349
1349
}
Original file line number Diff line number Diff line change @@ -173,3 +173,11 @@ a.blob-excerpt:hover {
173
173
.review-box > .segment {
174
174
border : none !important ;
175
175
}
176
+
177
+ .pull.files.diff [id] {
178
+ scroll-margin-top : 99px ;
179
+
180
+ @media @mediaMdAndDown {
181
+ scroll-margin-top : 130px ;
182
+ }
183
+ }
You can’t perform that action at this time.
0 commit comments