diff --git a/themes/le-2025/assets/js/donate-2026.js b/themes/le-2025/assets/js/donate-2026.js index ac12a9987..4b40fcb08 100644 --- a/themes/le-2025/assets/js/donate-2026.js +++ b/themes/le-2025/assets/js/donate-2026.js @@ -5,6 +5,7 @@ const Donate2026 = { this.page = page; this.forms = page.querySelector('#cmp-DonationForms2026'); + this.topGrid = page.querySelector('#cmp-Donate2026TopGrid'); this.formOverlay = page.querySelector('#cmp-Donate2026FormOverlay'); this.formSpacer = page.querySelector('#cmp-Donate2026FormSpacer'); this.lowerContent = page.querySelector('#cmp-Donate2026WaysToGive'); @@ -99,6 +100,10 @@ const Donate2026 = { syncFormSpacerHeight() { if (!this.formOverlay || !this.formSpacer) return; + if (this.topGrid) { + this.topGrid.style.paddingBottom = ''; + } + if (!this.desktopMediaQuery?.matches) { this.formSpacer.style.minHeight = ''; return; @@ -106,6 +111,15 @@ const Donate2026 = { this.formSpacer.style.minHeight = ''; + const otherPanel = this.forms?.querySelector('#donate-2026-panel-other'); + if (this.topGrid && otherPanel?.classList.contains('active')) { + const formBottom = this.formOverlay.getBoundingClientRect().bottom; + const gridBottom = this.topGrid.getBoundingClientRect().bottom; + const overflow = Math.max(Math.ceil(formBottom - gridBottom), 0); + + this.topGrid.style.paddingBottom = overflow ? `${overflow}px` : ''; + } + const formBottom = this.formOverlay.getBoundingClientRect().bottom; const spacerTop = this.formSpacer.getBoundingClientRect().top; const shortfall = Math.max(Math.ceil(formBottom - spacerTop), 0); diff --git a/themes/le-2025/layouts/partials/donation-forms-2026.html b/themes/le-2025/layouts/partials/donation-forms-2026.html index 8e6938770..da0c02a11 100644 --- a/themes/le-2025/layouts/partials/donation-forms-2026.html +++ b/themes/le-2025/layouts/partials/donation-forms-2026.html @@ -41,6 +41,7 @@ aria-labelledby="donate-2026-tab-other" aria-hidden="true" > +
Due to tax reasons, we cannot provide thank-you gifts for donations made via The Giving Block platform.