diff --git a/app/assets/stylesheets/extranet/_default/components/_persons.sass b/app/assets/stylesheets/extranet/_default/components/_persons.sass new file mode 100644 index 0000000000000000000000000000000000000000..76c3ae6ae79f5438ec121f71b81cad6c53064605 --- /dev/null +++ b/app/assets/stylesheets/extranet/_default/components/_persons.sass @@ -0,0 +1,3 @@ +.person + line-height: px2rem(24) + position: relative \ No newline at end of file diff --git a/app/views/extranet/persons/_person.html.erb b/app/views/extranet/persons/_person.html.erb index 2d68495c55c49cd14b0b17525400567e0cd6d358..eabc0824e4dd18407a2e362dc45ee009f280415d 100644 --- a/app/views/extranet/persons/_person.html.erb +++ b/app/views/extranet/persons/_person.html.erb @@ -1,11 +1,10 @@ -<article class="mb-4 position-relative"> +<article class="mb-4 person"> <% if person.picture.attached? %> <%= kamifusen_tag person.picture, width: 400, class: 'img-fluid mb-2' %> <% else %> <%= image_tag 'extranet/avatar.png', width: 400, class: 'img-fluid mb-2' %> <% end %> <%= link_to person, class: 'stretched-link' do %> - <%= person.first_name %> - <b><%= person.last_name %></b> + <%= person.first_name %> <%= person.last_name %> <% end %> </article>