diff options
author | silverwind <me@silverwind.io> | 2021-05-08 17:28:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-08 18:28:25 +0300 |
commit | 2a9b8d173a286a7155306d7d1df6328d1eb98199 (patch) | |
tree | b9ac31d0431d3e092d9b0b0beac723f0f9386cbe /templates/repo/diff/comment_form.tmpl | |
parent | 24ad131221d8cb0becf726e0570f53838262edf1 (diff) | |
download | gitea-2a9b8d173a286a7155306d7d1df6328d1eb98199.tar.gz gitea-2a9b8d173a286a7155306d7d1df6328d1eb98199.zip |
Code comments improvements (#15722)
- Right-align the Reply and Resolve buttons
- Center Resolved text and add some padding
- Add padding to inline comments
- Indent the comment content to align with author name
- Re-parent form to allow better button layout space.
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'templates/repo/diff/comment_form.tmpl')
-rw-r--r-- | templates/repo/diff/comment_form.tmpl | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/templates/repo/diff/comment_form.tmpl b/templates/repo/diff/comment_form.tmpl index 628cd52dc2..93e4e5a226 100644 --- a/templates/repo/diff/comment_form.tmpl +++ b/templates/repo/diff/comment_form.tmpl @@ -1,9 +1,4 @@ {{if and $.root.SignedUserID (not $.Repository.IsArchived)}} - {{if $.hidden}} - <button class="comment-form-reply ui green labeled icon tiny button"> - {{svg "octicon-reply" 16 "reply icon mr-2"}}{{$.root.i18n.Tr "repo.diff.comment.reply"}} - </button> - {{end}} <form class="ui form {{if $.hidden}}hide comment-form comment-form-reply{{end}}" action="{{$.root.Issue.HTMLURL}}/files/reviews/comments" method="post"> {{$.root.CsrfTokenHtml}} <input type="hidden" name="origin" value="{{if $.root.PageIsPullFiles}}diff{{else}}timeline{{end}}"> @@ -26,7 +21,7 @@ {{.i18n.Tr "loading"}} </div> </div> - <div class="field footer"> + <div class="field footer mx-3"> <span class="markup-info">{{svg "octicon-markup"}} {{$.root.i18n.Tr "repo.diff.comment.markup_info"}}</span> <div class="ui right"> {{if $.reply}} |