diff --git a/app/views/extranet/persons/_person.html.erb b/app/views/extranet/persons/_person.html.erb index 1374df4e4aaea2a9b6dc0c69ba503dad9e26409c..7264e5ea750191a639c50f2136f686965e2669da 100644 --- a/app/views/extranet/persons/_person.html.erb +++ b/app/views/extranet/persons/_person.html.erb @@ -1,6 +1,6 @@ <article class="mb-4 person"> - <% if person.picture.attached? %> - <%= kamifusen_tag person.picture, width: 400, class: 'img-fluid mb-2', + <% if person.best_picture.attached? %> + <%= kamifusen_tag person.best_picture, width: 400, class: 'img-fluid mb-2', sizes: { '(max-width: 576px)': '400px', '(max-width: 991px)': '200px'