From a89c81a033826b13ae5ec78a4a186c249d23bebb Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Tue, 7 Jul 2020 14:00:01 +0200 Subject: [PATCH] Hide description paragraph if product has no description Improves the appearance of the layout when no description is present --- app/views/shop/products/_summary.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/shop/products/_summary.html.haml b/app/views/shop/products/_summary.html.haml index 2119d8bbc4..78d6b7a243 100644 --- a/app/views/shop/products/_summary.html.haml +++ b/app/views/shop/products/_summary.html.haml @@ -7,7 +7,7 @@ %h3 %a{"ng-click" => "triggerProductModal()", href: 'javascript:void(0)'} %span{"ng-bind" => "::product.name"} - %p.product-description{ng: {bind: "::product.description", click: "triggerProductModal()"}} + %p.product-description{ng: {bind: "::product.description", click: "triggerProductModal()", show: "product.description.length"}} .product-producer = t :products_from %span