title | issue |
---|---|
Hide thumbs and dots when having too many product images |
NEXT-11806 |
- Added a constant
maxItemsToShowMobileNav = 5
variable tostorefront/element/cms-element-image-gallery.html.twig
to hide the navigation dots when product has more than 5 images. - Changed block
{% element_image_gallery_slider_dots %}
instorefront/element/cms-element-image-gallery.html.twig
to add CSS classhide-dots
andhide-dots-mobile
based on the total product images. - Added a constant
maxItemsToShowNav = 8
variablesstorefront/element/cms-element-image-gallery.html.twig
to hide the product thumbnails and navigation dots when product has more than 8 images. - Changed block
{% element_image_gallery_inner_thumbnails_col %}
instorefront/element/cms-element-image-gallery.html.twig
to add classhide-thumbs
to divgallery-slider-thumbnails-container
to hide the thumbnails when total product larger than 8. - Added
hide-dots
andhide-dots-mobile
classes to/storefront/src/scss/component/_base-slider.scss
to handle the visible of navigation dots on responsive. - Added
hide-thumbs
to/storefront/src/scss/component/_gallery-slider.scss
to handle visible of the product thumbnails.