fix: Improve BigButton responsive design

Signed-off-by: Myzel394 <50424412+Myzel394@users.noreply.github.com>
This commit is contained in:
Myzel394 2024-03-22 22:24:47 +01:00
parent e0dce7d359
commit a122cbea03
No known key found for this signature in database
GPG Key ID: DEC4AAB876F73185

View File

@ -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