Skip to content

Commit ded6bbe

Browse files
keeping consistent by using p-avatar
1 parent ef6fe65 commit ded6bbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

angular-primeng-app/src/app/components/post-details/post-details.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ <h1 class="title">{{ post.title }}</h1>
1313
}
1414
</p-avatarGroup>
1515
} @else {
16-
<img class="author-image" [src]="post.author.profilePicture" alt="{{ post.author.name}}">
16+
<p-avatar [image]="coAuthor.profilePicture" size="large" shape="circle" title="{{ coAuthor.username}}"></p-avatar>
1717
}
1818
<div class="author-text">
1919
<span class="author-name">{{post.author.name}} {{isTeam && post.coAuthors.length > 0 ? 'with ' +post.coAuthors.length + ' co-author' + (post.coAuthors.length > 1 ? 's' : '') : ''}}</span>

0 commit comments

Comments
 (0)