Fix comment review avatar alignment (#29935)
Fix #29934 (cherry picked from commit bc55a80693aded26efd856812097536e2402d491) Conflicts: templates/repo/issue/view_content/comments.tmpl trivial context conflict
This commit is contained in:
parent
522eb73ec9
commit
6243973899
1 changed files with 3 additions and 4 deletions
|
@ -376,10 +376,9 @@
|
||||||
<div class="timeline-item-group" id="{{.HashTag}}">
|
<div class="timeline-item-group" id="{{.HashTag}}">
|
||||||
<div class="timeline-item event">
|
<div class="timeline-item event">
|
||||||
{{if not .OriginalAuthor}}
|
{{if not .OriginalAuthor}}
|
||||||
{{/* Some timeline avatars need a offset to correctly align with their speech
|
{{/* Some timeline avatars need a offset to correctly align with their speech bubble.
|
||||||
bubble. The condition depends on review type and for positive reviews whether
|
The condition depends on whether the comment has contents/attachments or reviews */}}
|
||||||
there is a comment element or not */}}
|
<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}}>
|
||||||
<a class="timeline-avatar{{if or (and (eq .Review.Type 1) (or .Content .Attachments)) (and (eq .Review.Type 2) (or .Content .Attachments)) (eq .Review.Type 3)}} timeline-avatar-offset{{end}}"{{if gt .Poster.ID 0}} href="{{.Poster.HomeLink}}"{{end}}>
|
|
||||||
{{ctx.AvatarUtils.Avatar .Poster 40}}
|
{{ctx.AvatarUtils.Avatar .Poster 40}}
|
||||||
</a>
|
</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
Loading…
Add table
Reference in a new issue