|
15 | 15 | {{if eq .Type 0}} |
16 | 16 | <div class="timeline-item comment" id="{{.HashTag}}"> |
17 | 17 | {{if .OriginalAuthor}} |
18 | | - <span class="timeline-avatar"><img src="{{AppSubUrl}}/assets/img/avatar_default.png"></span> |
| 18 | + <span class="timeline-avatar"> |
| 19 | + <img src="{{AppSubUrl}}/assets/img/avatar_default.png" width="40" height="40"> |
| 20 | + </span> |
19 | 21 | {{else}} |
20 | 22 | <a class="timeline-avatar"{{if gt .Poster.ID 0}} href="{{.Poster.HomeLink}}"{{end}}> |
21 | | - {{avatar $.Context .Poster}} |
| 23 | + {{avatar $.Context .Poster 40}} |
22 | 24 | </a> |
23 | 25 | {{end}} |
24 | 26 | <div class="content comment-container"> |
|
38 | 40 | {{else}} |
39 | 41 | {{if gt .Poster.ID 0}} |
40 | 42 | <a class="inline-timeline-avatar" href="{{.Poster.HomeLink}}"> |
41 | | - {{avatar $.Context .Poster}} |
| 43 | + {{avatar $.Context .Poster 24}} |
42 | 44 | </a> |
43 | 45 | {{end}} |
44 | 46 | <span class="text grey muted-links"> |
|
375 | 377 | {{/* Some timeline avatars need a offset to correctly allign with their speech |
376 | 378 | bubble. The condition depends on review type and for positive reviews whether |
377 | 379 | there is a comment element or not */}} |
378 | | - <a class="timeline-avatar{{if or (and (eq .Review.Type 1) (or .Content .Attachments)) (eq .Review.Type 2) (eq .Review.Type 3)}} timeline-avatar-offset{{end}}"{{if gt .Poster.ID 0}} href="{{.Poster.HomeLink}}"{{end}}> |
379 | | - {{avatar $.Context .Poster}} |
| 380 | + <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}}> |
| 381 | + {{avatar $.Context .Poster 40}} |
380 | 382 | </a> |
381 | 383 | {{end}} |
382 | 384 | <span class="badge{{if eq .Review.Type 1}} gt-bg-green gt-text-white{{else if eq .Review.Type 3}} gt-bg-red gt-text-white{{end}}">{{svg (printf "octicon-%s" .Review.Type.Icon)}}</span> |
|
413 | 415 | <div class="comment-header-left gt-df gt-ac"> |
414 | 416 | {{if gt .Poster.ID 0}} |
415 | 417 | <a class="inline-timeline-avatar" href="{{.Poster.HomeLink}}"> |
416 | | - {{avatar $.Context .Poster}} |
| 418 | + {{avatar $.Context .Poster 24}} |
417 | 419 | </a> |
418 | 420 | {{end}} |
419 | 421 | <span class="text grey muted-links"> |
|
482 | 484 | {{range $filename, $lines := .Review.CodeComments}} |
483 | 485 | {{range $line, $comms := $lines}} |
484 | 486 | <div class="ui segments"> |
485 | | - <div class="ui segment gt-py-3 gt-df gt-ac gt-sb"> |
| 487 | + <div class="ui segment collapsible-comment-box gt-py-3 gt-df gt-ac gt-sb"> |
486 | 488 | {{$invalid := (index $comms 0).Invalidated}} |
487 | 489 | {{$resolved := (index $comms 0).IsResolved}} |
488 | 490 | {{$resolveDoer := (index $comms 0).ResolveDoer}} |
|
541 | 543 | <div class="comment-header-left gt-df gt-ac"> |
542 | 544 | {{if not .OriginalAuthor}} |
543 | 545 | <a class="avatar"> |
544 | | - {{avatar $.Context .Poster}} |
| 546 | + {{avatar $.Context .Poster 20}} |
545 | 547 | </a> |
546 | 548 | {{end}} |
547 | 549 | <span class="text grey muted-links"> |
|
768 | 770 | <div class="timeline-item-group"> |
769 | 771 | <div class="timeline-item event" id="{{.HashTag}}"> |
770 | 772 | <a class="timeline-avatar"{{if gt .Poster.ID 0}} href="{{.Poster.HomeLink}}"{{end}}> |
771 | | - <img src="{{.Poster.AvatarLink $.Context}}"> |
| 773 | + <img src="{{.Poster.AvatarLink $.Context}}" width="40" height="40"> |
772 | 774 | </a> |
773 | 775 | <span class="badge grey">{{svg "octicon-x" 16}}</span> |
774 | 776 | {{template "shared/user/avatarlink" dict "Context" $.Context "user" .Poster}} |
|
789 | 791 | <div class="ui top attached header comment-header-left gt-df gt-ac arrow-top"> |
790 | 792 | {{if gt .Poster.ID 0}} |
791 | 793 | <a class="inline-timeline-avatar" href="{{.Poster.HomeLink}}"> |
792 | | - {{avatar $.Context .Poster}} |
| 794 | + {{avatar $.Context .Poster 24}} |
793 | 795 | </a> |
794 | 796 | {{end}} |
795 | 797 | <span class="text grey muted-links"> |
|
0 commit comments