Implemented Enable flex-grow for grid items on narrow displays

Status
Not open for further replies.

Liam W

Customer
Currently, when viewing the product list on a narrow display (where's there's only enough room to display 1 product), the product is aligned to the left, which looks unappealing.

Adding a CSS rule for when the device is narrow (or below the width at which two products can appear) to enable flex-grow will cause the product item block to fill the width, which appears more visually appealing.

(I've done this on my board, if you'd like an example of what'd it look like: https://lw-addons.net)
 
Upvote 0
This suggestion has been implemented. Votes are no longer accepted.
Hello @Liam W,

Thank you for your suggestion for DragonByte eCommerce. Your request will be reviewed by a member of our team shortly.

Unless there are any problems preventing these features from being added to the product, this thread will not receive another reply until it is time to review logged feature requests for implementation.

We appreciate you taking the time to help us improve our products!


- DragonByte Tech Staff
 
Could you post the CSS and where you added it so I don’t have to pick it out of your compiled CSS in the page source? 😅
 
Nevermind, I found it. I added it as
Less:
@media (max-width: @xf-responsiveNarrow)
{
    .productList-product-grid
  {
      max-width: unset;
      flex-grow: 1;
  }
}
in dbtech_ecommerce_product_grid.less :)
 
Status
Not open for further replies.

DragonByte eCommerce

XenForo 2.0.6+ XenForo 2.1.x XenForo 2.2.x XenForo 2.3.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
3,040
Customer rating
4.86 star(s) 7 ratings
Back
Top