#pulley871_payment-element-field-arrangement
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1333489350570278986
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi đ
The Payment Element dynamically renders based on the available space. What have you tried?
Well we have this thing in multiple places on our system and even in spaces where it has large areas, it still does the same thing
Here is an example from our Users portal
What do you want it to look like?
I would like it to look like the Docs show.
With the card element taking up the whole first row
That depends on the amount of horizontal space allotted. I can do that in my test integration simply by widening or shrinking the browser window
Just for testing purposes here is the code i just tried and got the same result
<div className={'h-[40rem]'}>
<Elements stripe={stripe} options={options}>
<PaymentElement options={paymentOptions} />
</Elements>
</div>