diff --git a/public/index.html b/public/index.html index 8de7d98..96a221f 100644 --- a/public/index.html +++ b/public/index.html @@ -374,6 +374,13 @@ function applyFilters() { card.classList.toggle('filtered-out', !visible); }); + + // Resize acte sections based on visible cards + document.querySelectorAll('.acte-section').forEach(section => { + const visibleCards = section.querySelectorAll('.card:not(.filtered-out)').length; + const minW = Math.max(280, visibleCards * 274 + 20); + section.style.width = minW + 'px'; + }); } function clearFilters() {