fix(gallery): add variants on thumbnails

This commit is contained in:
Eric Leroy-Terquem 2024-04-23 14:51:59 +02:00
parent 396384cfa9
commit 4b53808b5c
No known key found for this signature in database
GPG key ID: ECE60B4C1FA2ABB3
4 changed files with 13 additions and 2 deletions

View file

@ -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