aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/issue
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-01-05 19:25:27 +0000
committerGitHub <noreply@github.com>2020-01-05 19:25:27 +0000
commit2a1cf5bae975e59cb27a74cbe443d25ba329145c (patch)
tree5f1498984fdfcaac6f9eccf3d37194c3a76202d6 /templates/repo/issue
parent133ae18b61c5d3bdfc7670b8320abe84dd96cbe2 (diff)
downloadgitea-2a1cf5bae975e59cb27a74cbe443d25ba329145c.tar.gz
gitea-2a1cf5bae975e59cb27a74cbe443d25ba329145c.zip
Add some padding to the shadowed comment box (#9612)
* Add some padding to the shadowed comment box * prevent the padding affecting the other comments
Diffstat (limited to 'templates/repo/issue')
-rw-r--r--templates/repo/issue/view_content/comments.tmpl26
1 files changed, 14 insertions, 12 deletions
diff --git a/templates/repo/issue/view_content/comments.tmpl b/templates/repo/issue/view_content/comments.tmpl
index 9a9bb6b8d4..658494ac30 100644
--- a/templates/repo/issue/view_content/comments.tmpl
+++ b/templates/repo/issue/view_content/comments.tmpl
@@ -360,19 +360,21 @@
<img src="{{.Poster.RelAvatarLink}}">
</a>
<div class="content">
- <a class="author" {{if gt .Poster.ID 0}}href="{{.Poster.HomeLink}}"{{end}}>{{.Poster.GetDisplayName}}</a>
- <div class="metadata">
- <span class="date">{{$.i18n.Tr "repo.issues.commented_at" .HashTag $createdSubStr | Safe}}</span>
- </div>
- <div class="text">
- <div class="render-content markdown has-emoji">
- {{if .RenderedContent}}
- {{.RenderedContent|Str2html}}
- {{else}}
- <span class="no-content">{{$.i18n.Tr "repo.issues.no_content"}}</span>
- {{end}}
+ <div class="code-comment-content">
+ <a class="author" {{if gt .Poster.ID 0}}href="{{.Poster.HomeLink}}"{{end}}>{{.Poster.GetDisplayName}}</a>
+ <div class="metadata">
+ <span class="date">{{$.i18n.Tr "repo.issues.commented_at" .HashTag $createdSubStr | Safe}}</span>
+ </div>
+ <div class="text">
+ <div class="render-content markdown has-emoji">
+ {{if .RenderedContent}}
+ {{.RenderedContent|Str2html}}
+ {{else}}
+ <span class="no-content">{{$.i18n.Tr "repo.issues.no_content"}}</span>
+ {{end}}
+ </div>
+ <div class="raw-content hide">{{.Content}}</div>
</div>
- <div class="raw-content hide">{{.Content}}</div>
</div>
</div>
</div>