Use appropriate image sizes and lazy loading in userbox

This commit is contained in:
Andreas Nedbal 2022-10-10 23:16:57 +02:00
parent ec6f25e16b
commit 3cf985eb11
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
.card.h-100.userbox
%img.userbox__header{ src: user.profile_header.url(:mobile) }
.card-body
%img.userbox__avatar{ src: user.profile_picture.url(:small) }
%img.userbox__avatar{ src: user.profile_picture.url(:small), loading: :lazy }
%a.profile__name{ href: user_path(user) }
- unless user.profile.display_name.blank?
.profile__display-name