diff options
author | Giteabot <teabot@gitea.io> | 2024-12-30 00:58:40 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-30 00:58:40 +0800 |
commit | 7f0050cf3991b4bfb2ab80ab02de40dc98cf75a1 (patch) | |
tree | dc239a5f601b39dcf7288f43e1288f042bfde7bc /templates | |
parent | c102e344f3e90157b66ec676969a4c20a10509e6 (diff) | |
download | gitea-7f0050cf3991b4bfb2ab80ab02de40dc98cf75a1.tar.gz gitea-7f0050cf3991b4bfb2ab80ab02de40dc98cf75a1.zip |
Fix review code comment avatar alignment (#33031) (#33032)
Backport #33031 by henrygoodman
Fixes #33017
Co-authored-by: Henry Goodman <79623665+henrygoodman@users.noreply.github.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/issue/view_content/comments.tmpl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/templates/repo/issue/view_content/comments.tmpl b/templates/repo/issue/view_content/comments.tmpl index 9fdbf45939..2e1a67edcc 100644 --- a/templates/repo/issue/view_content/comments.tmpl +++ b/templates/repo/issue/view_content/comments.tmpl @@ -365,8 +365,9 @@ {{if .Review}}{{$reviewType = .Review.Type}}{{end}} {{if not .OriginalAuthor}} {{/* Some timeline avatars need a offset to correctly align with their speech bubble. - The condition depends on whether the comment has contents/attachments or reviews */}} - <a class="timeline-avatar{{if or .Content .Attachments (and .Review .Review.CodeComments)}} timeline-avatar-offset{{end}}"{{if gt .Poster.ID 0}} href="{{.Poster.HomeLink}}"{{end}}> + The condition depends on whether the comment has contents/attachments, + review's comment is also controlled/rendered by issue comment's Content field */}} + <a class="timeline-avatar{{if or .Content .Attachments}} timeline-avatar-offset{{end}}"{{if gt .Poster.ID 0}} href="{{.Poster.HomeLink}}"{{end}}> {{ctx.AvatarUtils.Avatar .Poster 40}} </a> {{end}} |