New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add overflow-auto to modals to make them scrollable #754
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@bennymi Thanks for jumping on this. Is there any way to keep a small bit of spacing between the modal and the edge of the screen? This still looks a bit broken: Perhaps adding some padding to the backdrop, which surrounds the modal window? |
@endigo9740 I think the best we can do is add a But this then means that when the whole modal is visible it isn't fully centered anymore. Although the small difference isn't that noticable: Using |
Gotcha, I figured that might be the case. Whatever works and looks good really. Also side note - where is that drag handle coming from in the bottom-right corner. That's not native right? Do you have a browser plugin or something triggering that? First I've seen of that. |
@endigo9740 yeah that's actually from the browser 😄 Firefox and Chrome both have that feature where you can change the dimensions of the screen, that's when the drag handle shows up: |
Ohhh I see. I didn't realize that's what you were using. I tend to opt for the fixed sizes for mobile previews in Chrome as oppose to the fluid option. I follow. Btw, it's still not quite like I want. Do you mind if I jump in an take a quick swing at this? I'll push a small change in a moment if I can get it like I want it. (Sorry I'm so picky heh) |
@endigo9740 sure thing, give it a go! :) |
I'm pleased with this, merging now! |
@endigo9740 nice! Looks much better than before! |
Before submitting the PR:
npm run test
?branch -m new-branch-name
What does your PR address?
Fixes #734.
Added
overflow-auto
to the modal to make it scrollable.Tips