From 95924e46385d8bacbe518f183718e5c06c7b3601 Mon Sep 17 00:00:00 2001 From: j Date: Fri, 28 Mar 2025 11:17:37 +0000 Subject: [PATCH] fix mobile detection --- camp/static/js/gallery.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/camp/static/js/gallery.js b/camp/static/js/gallery.js index d3547bf..470ca23 100644 --- a/camp/static/js/gallery.js +++ b/camp/static/js/gallery.js @@ -142,7 +142,7 @@ function loadGallery(images, idx, main, thumbnails) { gallery.querySelectorAll(".thumbnail").forEach((thumb, i) => { thumb.classList.toggle("active", i === index); }); - if (thumbnailsContainer && thumbnailsContainer(thumbnailsContainer).flexWrap == "nowrap") { + if (thumbnailsContainer && getComputedStyle(thumbnailsContainer).flexWrap == "nowrap") { gallery.querySelector('.active').scrollIntoView() } }