Skip to content

Commit

Permalink
fix: Improve BigButton responsive design
Browse files Browse the repository at this point in the history
Signed-off-by: Myzel394 <[email protected]>
  • Loading branch information
Myzel394 committed Mar 22, 2024
1 parent e0dce7d commit a122cbe
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ fun BigButton(

BoxWithConstraints {
val isLarge =
maxWidth > 200.dp && maxHeight > 400.dp && orientation == Configuration.ORIENTATION_PORTRAIT
maxWidth > 200.dp && maxHeight > 350.dp && orientation == Configuration.ORIENTATION_PORTRAIT

Column(
modifier = Modifier
.size(if (isLarge) 250.dp else 180.dp)
.size(if (isLarge) 250.dp else 190.dp)
.clip(CircleShape)
.semantics {
contentDescription = label
Expand Down

0 comments on commit a122cbe

Please sign in to comment.