[fix #872] Procedure Logo: fix overflow logo for ie11

Bug in ie11 linked to flex and image ratio
The only way to fix it so far and preserving image ratio is to use background image property
This commit is contained in:
Simon Lehericey 2017-10-25 13:59:02 +02:00 committed by Mathieu Magnin
parent c7bbe87f77
commit a4be8e709c
2 changed files with 5 additions and 3 deletions

View file

@ -30,6 +30,10 @@
width: 93px;
margin-right: 3 * $default-spacer;
flex-shrink: 0;
background-image: url("your/url/here");
background-size: contain;
background-repeat: no-repeat;
background-position: 95% 50%;
}
.procedure-title {

View file

@ -7,9 +7,7 @@
= link_to(procedure_path(p)) do
.flex
.procedure-logo
- if p.logo.present?
= image_tag p.logo, alt: "Logo de la procédure"
.procedure-logo{ style: p.logo.present? ? "background-image: url(#{p.logo.url})" : nil }
.procedure-details
%p.procedure-title