Skip to content

Commit 6e75bc0

Browse files
lafriksCirnoT
andauthored
Fix comment box styling and cancelling (#11463) (#11464) (#11469) (#11467)
* Fix styling of resolved code comment box (#11463) Co-authored-by: Lauris BH <[email protected]> * Fix .comment-code-cloud not being removed when cancelling new code comment (#11464) * Fix footer padding for comment code reply form on issue event view (#11469) Co-authored-by: Cirno the Strongest <[email protected]>
1 parent 087719c commit 6e75bc0

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

templates/repo/diff/comment_form.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{{if $.hidden}}
33
<button class="comment-form-reply ui green labeled icon tiny button"><i class="reply icon"></i> {{$.root.i18n.Tr "repo.diff.comment.reply"}}</button>
44
{{end}}
5-
<form class="ui form {{if $.hidden}}hide{{end}} comment-form comment-form-reply" action="{{$.root.Issue.HTMLURL}}/files/reviews/comments" method="post">
5+
<form class="ui form {{if $.hidden}}hide comment-form comment-form-reply{{end}}" action="{{$.root.Issue.HTMLURL}}/files/reviews/comments" method="post">
66
{{$.root.CsrfTokenHtml}}
77
<input type="hidden" name="latest_commit_id" value="{{$.root.AfterCommitID}}"/>
88
<input type="hidden" name="side" value="{{if $.Side}}{{$.Side}}{{end}}">

web_src/less/_repository.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -807,6 +807,10 @@
807807
.author {
808808
font-weight: 700;
809809
}
810+
811+
.comment-form-reply .footer {
812+
padding-bottom: 1em;
813+
}
810814
}
811815

812816
.comment {

web_src/less/_review.less

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@
1717
}
1818
}
1919

20+
.add-comment-left.add-comment-right .ui.attached.header {
21+
border: 1px solid #d4d4d5;
22+
margin-bottom: .5em;
23+
margin-top: .5em;
24+
}
25+
2026
.focus-lines-new .ui.button.add-code-comment.add-code-comment-right,
2127
.focus-lines-old .ui.button.add-code-comment.add-code-comment-left {
2228
opacity: 1;

0 commit comments

Comments
 (0)