fix(gallery): add variants on thumbnails
This commit is contained in:
parent
396384cfa9
commit
4b53808b5c
4 changed files with 13 additions and 2 deletions
|
@ -25,7 +25,7 @@
|
|||
- elsif blob.content_type.in?(AUTHORIZED_IMAGE_TYPES)
|
||||
= link_to image_url(blob.url), title: "#{champ.libelle} -- #{blob.filename}", data: { src: blob.url }, class: 'gallery-link' do
|
||||
.thumbnail
|
||||
= image_tag(blob.url, loading: :lazy)
|
||||
= image_tag(attachment.variant(:medium), loading: :lazy)
|
||||
.fr-btn.fr-btn--tertiary.fr-btn--icon-left.fr-icon-eye{ role: :button }
|
||||
Visualiser
|
||||
.champ-libelle
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue