Hi everyone, nice to meet you all. I’m really a be...
# ask-a-descoper
m
Hi everyone, nice to meet you all. I’m really a beginner in descope, started to work with the “flows” concept and directly with the sdk. I have some questions: 1. how do I customize the size of a button to fit the container? as you can see I have 2 buttons. 1 with a longer string than the other. I want them to have the same size and fill the container size. 2. How can I enforce that only users from a specific domain or with a specific email address to sign in? it would be great to see how to define it in the “flow” concept. Thank you 🙂
s
if it's a specific tenant you want to limit :
If it's for all tenants you can simply do a condition on email domain in the flow
About the buttons, Did you look at the styles page ? @few-holiday-24516 can you suggest the optimal way to do it?
s
Does this fit your needs ?
f
There is a fill container option under the button settings, you should turn it on
m
yes, I don’t have the option to customize the size of the button and the container elements. when I apply fit container, it becomes vertical and not horizontal as I want
f
This is how you can achieve it 1. drag a new container and make sure its direction is horizontal
2. drag 2 new containers and place them inside the horizontal container
Set each container width to 48%
Place a button inside each inner container, and enable the buttons’ fill container toggle
You can change the padding of the inner & outer containers as needed
m
cool! thanks 🙂