When I want to change the corner raduis with a rad...
# compose-desktop
e
When I want to change the corner raduis with a raduis big than 20dp, the button looks like this
🤣 8
j
🤣
Those buttons do look fancy!
d
Nice catch! 😄 Do you have GitHub account? Would be nice if you can post this here https://github.com/JetBrains/compose-jb/issues/
a
It is actually an expected behaviour. The sum of requested top and bottom corner radiuses is larger then the height of the component. We give a priority to the top corner so it takes the requested size and the bottom takes the rest of the available one. Just make you button height larger with
Modifier.height(48.dp)
j
🤦 I do kinda wish we could "throw a warning" in cases like this. That was not obvious.
1
a
SadButton xD
😁 4
c
just you wait until this is the next design trend and everyone hops on Compose for the built-in bat-button support
a
does it make some sound when you hit it?
awww