-
Notifications
You must be signed in to change notification settings - Fork 663
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
Span PMs across the PaymentSheet when there are only two of them. #4432
Conversation
Diffuse output:
APK
DEX
|
Say you have an ultra wide screen like w540dp in #4321. For 2 PMs they'll be very wide and take the full width. For 3 they'll not, and will end in the middle of the screen. Is that what we want? |
That makes sense and gets rid of the magic numbers. I added screenshots of a wide device showing the PMs being spread across evenly. |
* Span PMs across the PaymentSheet when there are only two of them. (#4432) * fix width of PMs when only two methods * spread across for all number of PMs rather than just 2 * fix unit test
Summary
This makes it so when there are only two payment methods we span them across the sheet each taking 50% of the width. This matches iOS behavior: https://github.com/stripe-ios/stripe-ios/pull/538
Edit: We now span the payment methods evenly across the sheet if they all fit. See wide device screenshots for example.
Motivation
https://paper.dropbox.com/doc/Klarna-UI-polish-items--BWwhjD7FRVxPRMr5_HnXwep0AQ-Ox7FXrEh90mKen5IeploR
Testing
Screenshots