Web-Dev-Path / web-dev-path

The Web Dev Path platform. Progressive Web App (PWA). Next.js rules!
https://webdevpath.co
GNU General Public License v3.0
33 stars 11 forks source link

Fix Contact Form success message display and position shift on desktop #221

Closed mariana-caldas closed 1 month ago

mariana-caldas commented 1 month ago

What do we need to build or fix?

When trying to send a message through our form under the contact page on the desktop, the success message (or any message) is not displayed, and the form shifts position, moving to the left. The messages are only displayed on mobile.

Technical details

After researching the console, I noticed that an unset position in a media query causes the issue. This issue was observed during testing on a MAC using the Chrome browser. We need to ensure the message appears on both desktop and mobile without causing the form to move on the desktop.

https://github.com/user-attachments/assets/bfc1e79e-4fb6-4f3f-8c6b-77abdf4257ae

Approach suggestions

Deadline

Please keep in mind that once you assign this task to yourself, you'll need to complete it in 10 days.

Acceptance criteria