mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-02-13 21:33:20 +01:00
Use appropriate image sizes and lazy loading in questions
This commit is contained in:
parent
8d1bd30615
commit
ec6f25e16b
2 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@
|
|||
.media
|
||||
- unless question.author_is_anonymous
|
||||
%a.pull-left{ href: unless hidden then user_path(question.user) end }
|
||||
%img.answerbox__question-user-avatar.avatar-md{ src: question.user.profile_picture.url(:medium) }
|
||||
%img.answerbox__question-user-avatar.avatar-md{ src: question.user.profile_picture.url(:small) }
|
||||
.media-body
|
||||
- if user_signed_in?
|
||||
.pull-right
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
- if type == 'discover'
|
||||
.pull-left
|
||||
%a{ href: user_screen_name(q.user, link_only: true) }
|
||||
%img.avatar-md.mr-2{ src: q.user&.profile_picture&.url(:medium) }
|
||||
%img.avatar-md.mr-2{ src: q.user&.profile_picture&.url(:small), loading: :lazy }
|
||||
.media-body
|
||||
- if user_signed_in?
|
||||
.pull-right
|
||||
|
|
Loading…
Reference in a new issue