From d273eb9619e6e8ada62dfcc1d3ed866ab2e4fc57 Mon Sep 17 00:00:00 2001 From: Boone B Gorges Date: Mon, 29 Apr 2024 11:56:13 -0500 Subject: [PATCH] More targeted dynamic resizing of grid elements. See cuny-academic-commons/commons-in-a-box#469. --- js/utility.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/utility.js b/js/utility.js index 89706ff..37f3e0c 100644 --- a/js/utility.js +++ b/js/utility.js @@ -552,7 +552,7 @@ ] els.forEach( el => { - const gridItems = document.querySelectorAll( '.group-item-wrapper' ); + const gridItems = el.querySelectorAll( '.group-item-wrapper' ); // Find the tallest item. let tallest = 0;