From 6e75bc013e97d3cc93e2ed02512e364e3333542c Mon Sep 17 00:00:00 2001 From: Lauris BH Date: Mon, 18 May 2020 12:17:35 +0300 Subject: [PATCH] Fix comment box styling and cancelling (#11463) (#11464) (#11469) (#11467) * Fix styling of resolved code comment box (#11463) Co-authored-by: Lauris BH * 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 <1447794+CirnoT@users.noreply.github.com> --- templates/repo/diff/comment_form.tmpl | 2 +- web_src/less/_repository.less | 4 ++++ web_src/less/_review.less | 6 ++++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/templates/repo/diff/comment_form.tmpl b/templates/repo/diff/comment_form.tmpl index a286725722..e201db4687 100644 --- a/templates/repo/diff/comment_form.tmpl +++ b/templates/repo/diff/comment_form.tmpl @@ -2,7 +2,7 @@ {{if $.hidden}} {{end}} -
+ {{$.root.CsrfTokenHtml}} diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less index 47b020d4e1..148d65e717 100644 --- a/web_src/less/_repository.less +++ b/web_src/less/_repository.less @@ -807,6 +807,10 @@ .author { font-weight: 700; } + + .comment-form-reply .footer { + padding-bottom: 1em; + } } .comment { diff --git a/web_src/less/_review.less b/web_src/less/_review.less index f146cc1da8..38e5c62793 100644 --- a/web_src/less/_review.less +++ b/web_src/less/_review.less @@ -17,6 +17,12 @@ } } +.add-comment-left.add-comment-right .ui.attached.header { + border: 1px solid #d4d4d5; + margin-bottom: .5em; + margin-top: .5em; +} + .focus-lines-new .ui.button.add-code-comment.add-code-comment-right, .focus-lines-old .ui.button.add-code-comment.add-code-comment-left { opacity: 1;