From 9cd7c310830b8f369023e6d9e4ef666a13002191 Mon Sep 17 00:00:00 2001 From: Arnaud Levy <contact@arnaudlevy.com> Date: Wed, 26 Oct 2022 15:35:31 +0200 Subject: [PATCH] best picture --- app/views/extranet/home/index.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/extranet/home/index.html.erb b/app/views/extranet/home/index.html.erb index b3dd3716b..48168a94a 100644 --- a/app/views/extranet/home/index.html.erb +++ b/app/views/extranet/home/index.html.erb @@ -20,8 +20,8 @@ <li> <div> <%= link_to experience.person, class: "stretched-link" do %> - <% if experience.person.picture.attached? %> - <%= kamifusen_tag experience.person.picture, width: 400, class: 'img-fluid', sizes: { + <% if experience.person.best_picture.attached? %> + <%= kamifusen_tag experience.person.best_picture, width: 400, class: 'img-fluid', sizes: { '(max-width: 576px)': '400px', '(max-width: 991px)': '200px' } %> -- GitLab