From 444f0e2dbe896321e6eb00469d1bb3ded7aa0218 Mon Sep 17 00:00:00 2001 From: Ari Stathopoulos Date: Fri, 8 Nov 2024 11:22:16 +0200 Subject: [PATCH] masonry tweak no longer needed --- assets/js/grid-masonry.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/assets/js/grid-masonry.js b/assets/js/grid-masonry.js index 2b93e7b48..29f4c4216 100644 --- a/assets/js/grid-masonry.js +++ b/assets/js/grid-masonry.js @@ -32,18 +32,6 @@ const prplResizeGridItem = ( item ) => { ( elHeight + paddingTop + paddingBottom ) / rowHeight ); item.style.gridRowEnd = 'span ' + ( rowSpan + 1 ); - - // If this is the last item and taller than the 2 previous items, move it to the 1st column. - if ( - item.nextElementSibling === null && - item.getBoundingClientRect().height > - item.previousElementSibling.getBoundingClientRect().height && - item.getBoundingClientRect().height > - item.previousElementSibling.previousElementSibling.getBoundingClientRect() - .height - ) { - item.style.gridColumn = '1'; - } }; /**