Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions src/components/membership/QgivJoin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -245,12 +245,11 @@ export default function QgivJoin({ tier, className, prefill }: QgivJoinProps) {
{/* Qgiv's embed.js sets a default iframe height (observed: 1000px) via
the `height` HTML attribute, then narrows it once its resize
postMessage fires — which hasn't reliably landed here, leaving dead
space below the visibly shorter membership form. `/donate` and
`/donate-new` hit the same issue and fix it the same way: a plain
CSS rule beats an HTML attribute in the cascade without needing
`!important`, capping the iframe box directly rather than a
wrapping element Qgiv's script may detach from. */}
<style>{`.qgiv-embed-container iframe.qgiv-embed { max-height: 720px; }`}</style>
space below the visibly shorter membership form. Capping at 950px
(vs. clamping to something like 720px) still fits the tallest
real-world variant of the form while trimming the worst of the
unresized default. */}
<style>{`.qgiv-embed-container iframe.qgiv-embed { max-height: 950px; }`}</style>
</div>
);
}
Loading