[ofbiz-plugins] branch trunk updated: Fixed: Product summary cards don't have uniform height. (OFBIZ-11910) (#46)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ofbiz-plugins] branch trunk updated: Fixed: Product summary cards don't have uniform height. (OFBIZ-11910) (#46)

jleroux@apache.org
This is an automated email from the ASF dual-hosted git repository.

jleroux pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-plugins.git


The following commit(s) were added to refs/heads/trunk by this push:
     new f25852f  Fixed: Product summary cards don't have uniform height. (OFBIZ-11910) (#46)
f25852f is described below

commit f25852fef29510db6016e0dd6cb3fdd710bcc74d
Author: Saurabh Dixit <[hidden email]>
AuthorDate: Mon Nov 30 15:09:32 2020 +0530

    Fixed: Product summary cards don't have uniform height. (OFBIZ-11910) (#46)
   
    Done following:
    1. Used bootstrap card-deck to equalize the height/width of all the product summary cards.
   
    Reference:
    https://v4-alpha.getbootstrap.com/components/card/#card-decks
   
    Thanks Guys: Alex Bodnaru for report and suggestion, Saurabh Dixit for the patch, and Daniel Watford for the test
---
 ecommerce/template/catalog/ProductSummary.ftl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ecommerce/template/catalog/ProductSummary.ftl b/ecommerce/template/catalog/ProductSummary.ftl
index e891ff1..10bf028 100644
--- a/ecommerce/template/catalog/ProductSummary.ftl
+++ b/ecommerce/template/catalog/ProductSummary.ftl
@@ -72,7 +72,7 @@ ${variantInfoJavaScript!}
               <#assign productDetailId = "productDetailId"/>
               <#assign productDetailId = productDetailId + product.productId/>
 
-              <div class="col-md-4 products-card">
+              <div class="col-md-4 products-card card-deck">
                 <div class="card text-center">
                   <a href="${productUrl}" class="mt-2">
                     <img class="card-img-top" src="<@ofbizContentUrl>${contentPathPrefix!}${smallImageUrl}</@ofbizContentUrl>" alt="Small Image">