Skip to content

Commit da94919

Browse files
authored
Merge branch 'main' into settings-lowest-allowed-user-visiblity
2 parents 023ed7e + 615001d commit da94919

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

templates/repo/issue/view_content/comments.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@
462462
{{ range $filename, $lines := .Review.CodeComments}}
463463
{{range $line, $comms := $lines}}
464464
<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">
466466
{{$invalid := (index $comms 0).Invalidated}}
467467
{{$resolved := (index $comms 0).IsResolved}}
468468
{{$resolveDoer := (index $comms 0).ResolveDoer}}

web_src/js/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1343,7 +1343,7 @@ function initPullRequestReview() {
13431343
$(`#code-comments-${id}`).removeClass('hide');
13441344
$(`#code-preview-${id}`).removeClass('hide');
13451345
$(`#hide-outdated-${id}`).removeClass('hide');
1346-
$(window).scrollTop(commentDiv.offset().top);
1346+
commentDiv[0].scrollIntoView();
13471347
}
13481348
}
13491349
}

web_src/less/_review.less

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,3 +173,11 @@ a.blob-excerpt:hover {
173173
.review-box > .segment {
174174
border: none !important;
175175
}
176+
177+
.pull.files.diff [id] {
178+
scroll-margin-top: 99px;
179+
180+
@media @mediaMdAndDown {
181+
scroll-margin-top: 130px;
182+
}
183+
}

0 commit comments

Comments
 (0)