From 8303d5644f65d4f9a2608a75f5283073dac7e937 Mon Sep 17 00:00:00 2001 From: Nicolas Bally Date: Tue, 28 Aug 2018 15:07:48 +0200 Subject: [PATCH] suite --- app/assets/stylesheets/public/boutique.css.scss | 2 +- app/views/public/products/_product.html.haml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/assets/stylesheets/public/boutique.css.scss b/app/assets/stylesheets/public/boutique.css.scss index 7bdfcc9..b982d76 100644 --- a/app/assets/stylesheets/public/boutique.css.scss +++ b/app/assets/stylesheets/public/boutique.css.scss @@ -46,7 +46,7 @@ $dark_orange:#206e95; .img{ height:250px; background:no-repeat center center; - background-size:cover; + background-size:contain; } .description{ height:80px; diff --git a/app/views/public/products/_product.html.haml b/app/views/public/products/_product.html.haml index 302e03b..3bcff60 100755 --- a/app/views/public/products/_product.html.haml +++ b/app/views/public/products/_product.html.haml @@ -1,7 +1,7 @@ =link_to public_reseaux_product_path(:reseaux_id => params[:reseaux_id],:id => product.id, :slug => product.lang(I18n.locale).slug) do .product.product-item - .inner.with_ratio - .img{:style => "background-image:url('#{(product.default_image.image_file.file.large.medium.url if product.default_image)}')"} + .inner + .img.with_ratio{:style => "background-image:url('#{(product.default_image.image_file.file.large.medium.url if product.default_image)}')", :data => {:ratio => "0.77"}} .description %h3.product-title