medusajs / nextjs-starter-medusa

A performant frontend ecommerce starter template with Next.js 14 and Medusa.
https://next.medusajs.com/
MIT License
1.78k stars 495 forks source link

Fix modal overflow on small viewports #300

Open QAComet opened 7 months ago

QAComet commented 7 months ago

Description

For modals with larger forms, such as on the add/edit address form, if I shrink my desktops viewport height the form overflows from the modal. This creates an awkward situation where the user may not be able to submit the form, if the viewport height is too small. See the screenshot for how the overflow looks right now

address_modal

Steps to reproduce

  1. Login on /us/account
  2. Navigate to the addresses page on /us/account/addresses
  3. Click the "New address" button
  4. Shrink the viewport height so it is less than 650px

Suggestions for improvement