mirror of
https://github.com/go-gitea/gitea
synced 2024-12-26 06:34:14 +01:00
Better styling for code review comment form (#11413)
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
parent
db87e91227
commit
c483419184
3 changed files with 8 additions and 5 deletions
|
@ -28,8 +28,7 @@
|
||||||
{{$isNotPending := (not (eq (index $line.Comments 0).Review.Type 0))}}
|
{{$isNotPending := (not (eq (index $line.Comments 0).Review.Type 0))}}
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2" class="lines-num"></td>
|
<td colspan="2" class="lines-num"></td>
|
||||||
<td class="lines-type-marker"></td>
|
<td class="add-comment-left add-comment-right" colspan="2">
|
||||||
<td class="add-comment-left add-comment-right">
|
|
||||||
{{if $resolved}}
|
{{if $resolved}}
|
||||||
<div class = "ui attached header">
|
<div class = "ui attached header">
|
||||||
<span class="ui grey text left"><b>{{$resolveDoer.Name}}</b> {{$.root.i18n.Tr "repo.issues.review.resolved_by"}}</span>
|
<span class="ui grey text left"><b>{{$resolveDoer.Name}}</b> {{$.root.i18n.Tr "repo.issues.review.resolved_by"}}</span>
|
||||||
|
|
|
@ -1242,7 +1242,7 @@ function initPullRequestReview() {
|
||||||
if (!ntr.hasClass('add-comment')) {
|
if (!ntr.hasClass('add-comment')) {
|
||||||
ntr = $(`<tr class="add-comment">${
|
ntr = $(`<tr class="add-comment">${
|
||||||
isSplit ? '<td class="lines-num"></td><td class="lines-type-marker"></td><td class="add-comment-left"></td><td class="lines-num"></td><td class="lines-type-marker"></td><td class="add-comment-right"></td>' :
|
isSplit ? '<td class="lines-num"></td><td class="lines-type-marker"></td><td class="add-comment-left"></td><td class="lines-num"></td><td class="lines-type-marker"></td><td class="add-comment-right"></td>' :
|
||||||
'<td class="lines-num"></td><td class="lines-num"></td><td class="lines-type-marker"></td><td class="add-comment-left add-comment-right"></td>'
|
'<td class="lines-num"></td><td class="lines-num"></td><td class="add-comment-left add-comment-right" colspan="2"></td>'
|
||||||
}</tr>`);
|
}</tr>`);
|
||||||
tr.after(ntr);
|
tr.after(ntr);
|
||||||
}
|
}
|
||||||
|
|
|
@ -74,9 +74,13 @@
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.comment-list {
|
||||||
|
padding-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
.footer {
|
.footer {
|
||||||
border-top: 1px solid #f1f1f1;
|
border-top: 1px solid #f1f1f1;
|
||||||
margin-top: 10px;
|
padding: 10px 0 10px 0;
|
||||||
|
|
||||||
.markdown-info {
|
.markdown-info {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
@ -101,7 +105,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
form.comment-form-reply {
|
form.comment-form-reply {
|
||||||
margin: 0 0 0 4em;
|
margin: 0 0 0 1em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue