From cc602fb84b3a2d609b5bcd169d2223b9cf926b65 Mon Sep 17 00:00:00 2001 From: Arnaud Levy <contact@arnaudlevy.com> Date: Fri, 29 Jul 2022 16:17:01 +0200 Subject: [PATCH] logos --- app/assets/stylesheets/admin/styles.sass | 5 ++++- app/views/admin/university/organizations/_list.html.erb | 2 +- app/views/admin/university/organizations/show.html.erb | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/app/assets/stylesheets/admin/styles.sass b/app/assets/stylesheets/admin/styles.sass index 13b31467c..640b5cc69 100644 --- a/app/assets/stylesheets/admin/styles.sass +++ b/app/assets/stylesheets/admin/styles.sass @@ -49,4 +49,7 @@ h1 opacity: 0.5 .btn-light[target=_blank]::after - filter: invert(0) \ No newline at end of file + filter: invert(0) + +.bg-grey + background-color: #DDDDDD !important \ No newline at end of file diff --git a/app/views/admin/university/organizations/_list.html.erb b/app/views/admin/university/organizations/_list.html.erb index a20ef6568..210d439e5 100644 --- a/app/views/admin/university/organizations/_list.html.erb +++ b/app/views/admin/university/organizations/_list.html.erb @@ -12,7 +12,7 @@ <tr> <td><%= link_to organization, admin_university_organization_path(organization) %></td> <td><span class="badge bg-secondary"><%= organization.kind_i18n %></span></td> - <td class="p-0"> + <td class="p-0 bg-grey text-center"> <%= kamifusen_tag organization.logo, width: 40 if organization.logo.attached? %> </td> diff --git a/app/views/admin/university/organizations/show.html.erb b/app/views/admin/university/organizations/show.html.erb index c48ddd06d..f428c5dd7 100644 --- a/app/views/admin/university/organizations/show.html.erb +++ b/app/views/admin/university/organizations/show.html.erb @@ -94,8 +94,8 @@ <%= University::Organization.human_attribute_name('logo') %> </h5> </div> - <div class="card-body"> - <%= kamifusen_tag @organization.logo, class: 'img-fluid' if @organization.logo.attached? %> + <div class="card-body bg-grey"> + <%= kamifusen_tag @organization.logo, class: 'img-fluid p-5' if @organization.logo.attached? %> </div> </div> <% end %> -- GitLab