From 2a1cf5bae975e59cb27a74cbe443d25ba329145c Mon Sep 17 00:00:00 2001 From: zeripath Date: Sun, 5 Jan 2020 19:25:27 +0000 Subject: [PATCH] Add some padding to the shadowed comment box (#9612) * Add some padding to the shadowed comment box * prevent the padding affecting the other comments --- .../repo/issue/view_content/comments.tmpl | 26 ++++++++++--------- web_src/less/_repository.less | 8 ++++++ 2 files changed, 22 insertions(+), 12 deletions(-) diff --git a/templates/repo/issue/view_content/comments.tmpl b/templates/repo/issue/view_content/comments.tmpl index 9a9bb6b8d..658494ac3 100644 --- a/templates/repo/issue/view_content/comments.tmpl +++ b/templates/repo/issue/view_content/comments.tmpl @@ -360,19 +360,21 @@
- {{.Poster.GetDisplayName}} - -
-
- {{if .RenderedContent}} - {{.RenderedContent|Str2html}} - {{else}} - {{$.i18n.Tr "repo.issues.no_content"}} - {{end}} +
+ {{.Poster.GetDisplayName}} + +
+
+ {{if .RenderedContent}} + {{.RenderedContent|Str2html}} + {{else}} + {{$.i18n.Tr "repo.issues.no_content"}} + {{end}} +
+
{{.Content}}
-
{{.Content}}
diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less index 6530bcf8e..cd35b88f3 100644 --- a/web_src/less/_repository.less +++ b/web_src/less/_repository.less @@ -850,6 +850,14 @@ box-shadow: 0 0 10px #8c8c8c; } + &:target > .content > .code-comment-content { + padding: 4px; + } + + &:target > .content > .code-comment-content > .text { + margin-bottom: 0; + } + .ui.form { .field:first-child { clear: none;