mobile view

This commit is contained in:
j 2025-03-28 11:15:14 +00:00
parent b7b4b5dd36
commit f53b99e349

View file

@ -142,8 +142,6 @@ function loadGallery(images, idx, main, thumbnails) {
gallery.querySelectorAll(".thumbnail").forEach((thumb, i) => {
thumb.classList.toggle("active", i === index);
});
if document.querySelector(".thumbnail").parentElement
if (thumbnailsContainer && thumbnailsContainer(thumbnailsContainer).flexWrap == "nowrap") {
gallery.querySelector('.active').scrollIntoView()
}