Use appropriate image sizes and lazy loading in inbox entry

This commit is contained in:
Andreas Nedbal 2022-10-10 23:14:30 +02:00
parent 99b523bf9c
commit 66c80d2add
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
.media
- unless i.question.author_is_anonymous
%a.pull-left{ href: user_path(i.question.user) }
%img.answerbox__question-user-avatar.avatar-md{ src: i.question.user.profile_picture.url(:medium) }
%img.answerbox__question-user-avatar.avatar-md{ src: i.question.user.profile_picture.url(:small), loading: :lazy }
.media-body
%h6.text-muted.media-heading.answerbox__question-user
- if i.question.author_is_anonymous