From ead8f3bc1b8bb091f1a9587c8dd998a516acf169 Mon Sep 17 00:00:00 2001 From: Tatu Wikman Date: Tue, 28 Nov 2023 18:07:11 +0200 Subject: [PATCH] lint --- src/js/modules/facetedsearch/update.ts | 3 +-- src/scss/custom/components/category/_product-list.scss | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/modules/facetedsearch/update.ts b/src/js/modules/facetedsearch/update.ts index b88bf583f..a80c97854 100644 --- a/src/js/modules/facetedsearch/update.ts +++ b/src/js/modules/facetedsearch/update.ts @@ -85,14 +85,13 @@ export default () => { */ $('body').on('click', Theme.selectors.listing.pagerLink, (event) => { event.preventDefault(); - document.getElementById('js-product-list-top')?.scrollIntoView({block: "start", behavior: "auto"}); + document.getElementById('js-product-list-top')?.scrollIntoView({block: 'start', behavior: 'auto'}); prestashop.emit( events.updateFacets, $(event.target)?.closest('a')?.get(0)?.getAttribute('href'), ); }); - if ($(Theme.selectors.listing.list).length) { window.addEventListener('popstate', (e) => { const {state} = e; diff --git a/src/scss/custom/components/category/_product-list.scss b/src/scss/custom/components/category/_product-list.scss index 1bf008a50..10ddc429b 100644 --- a/src/scss/custom/components/category/_product-list.scss +++ b/src/scss/custom/components/category/_product-list.scss @@ -9,6 +9,7 @@ #js-product-list-top { scroll-margin: 120px; } + .products-selection { margin-bottom: 1.25rem;