Closed HimanshuMahto closed 1 year ago
The introduced changes enhance the responsiveness of the NewsLetter
component. The component now dynamically adjusts the iframe height based on the window width, ensuring a seamless user experience across different screen sizes.
File | Summary |
---|---|
src/components/layout/JoinUs/NewsLetter.jsx |
Added an event listener for the resize event. The listener calls the updateIframeHeight function, which adjusts the iframe height based on the window width. A cleanup function removes the event listener when the component is unmounted. |
🐇
"In the land of code, where the shadows lie,
A rabbit hopped, with a twinkle in its eye.
With each resize, the iframe did dance,
Thanks to the rabbit's clever enhancement. 🎉"
Hey @Roshan-Horo @anongorax @apoorv-on-git @itshypon Please review this PR.
Fixes Issue
This PR fixes the following issues:
closes #741
Changes proposed
I made the changes in the Newsletter.jsx with which the scrollbar showing in the mobile phone won't show anymore.
Here comes all the changes proposed through this PR
Check List (Check all the boxes which are applicable)
Screenshots
Add all the screenshots which support your changes
Summary by CodeRabbit
NewsLetter
section on our website. The section now dynamically adjusts its size based on your screen size, providing a better viewing experience across different devices. This update ensures that the content is always displayed in an optimal manner, regardless of how you resize your browser window.