mirror of
https://github.com/Myzel394/Alibi.git
synced 2025-06-18 23:05:26 +02:00
fix: Improve BigButton responsive design
Signed-off-by: Myzel394 <50424412+Myzel394@users.noreply.github.com>
This commit is contained in:
parent
e0dce7d359
commit
a122cbea03
@ -40,11 +40,11 @@ fun BigButton(
|
|||||||
|
|
||||||
BoxWithConstraints {
|
BoxWithConstraints {
|
||||||
val isLarge =
|
val isLarge =
|
||||||
maxWidth > 200.dp && maxHeight > 400.dp && orientation == Configuration.ORIENTATION_PORTRAIT
|
maxWidth > 200.dp && maxHeight > 350.dp && orientation == Configuration.ORIENTATION_PORTRAIT
|
||||||
|
|
||||||
Column(
|
Column(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.size(if (isLarge) 250.dp else 180.dp)
|
.size(if (isLarge) 250.dp else 190.dp)
|
||||||
.clip(CircleShape)
|
.clip(CircleShape)
|
||||||
.semantics {
|
.semantics {
|
||||||
contentDescription = label
|
contentDescription = label
|
||||||
|
Loading…
x
Reference in New Issue
Block a user