Use appropriate image sizes and lazy loading in inbox entry
This commit is contained in:
parent
99b523bf9c
commit
66c80d2add
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue