diff --git a/blocks/carousel/carousel.js b/blocks/carousel/carousel.js index d272733..91377a8 100644 --- a/blocks/carousel/carousel.js +++ b/blocks/carousel/carousel.js @@ -1,7 +1,7 @@ /* eslint-disable no-unused-expressions */ import { decorateIcons, loadCSS } from '../../scripts/lib-franklin.js'; import { div, p, span } from '../../scripts/dom-helpers.js'; -import { handleCompareProducts } from '../carousel/card.js'; +import { handleCompareProducts } from './card.js'; const AUTOSCROLL_INTERVAL = 7000; diff --git a/scripts/lib-franklin.js b/scripts/lib-franklin.js index 2e44743..aa085c6 100644 --- a/scripts/lib-franklin.js +++ b/scripts/lib-franklin.js @@ -334,6 +334,8 @@ export function readBlockConfig(block) { * @param {Element} main The container element */ export function decorateSections(main) { + const imageMediaQuery = window.matchMedia('only screen and (min-width: 400px)'); + main.querySelectorAll(':scope > div').forEach((section) => { const wrappers = []; let defaultContent = false;