Skip to content

Commit af6af87

Browse files
committed
fix: image weight
1 parent 408fcec commit af6af87

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

app/src/main/java/to/bitkit/ui/onboarding/WarningMultipleDevicesScreen.kt

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ fun WarningMultipleDevicesScreen(
3636
onConfirmClick: () -> Unit,
3737
) {
3838
Column(
39-
modifier = Modifier
40-
.fillMaxSize()
41-
.height(264.dp)
39+
modifier = Modifier.fillMaxSize()
4240
) {
4341
TopAppBar(
4442
title = {},
@@ -53,17 +51,13 @@ fun WarningMultipleDevicesScreen(
5351
},
5452
)
5553

56-
Spacer(modifier = Modifier.weight(1f))
57-
5854
Image(
5955
painter = painterResource(id = R.drawable.phone),
6056
contentDescription = null,
6157
contentScale = ContentScale.Fit,
62-
modifier = Modifier.fillMaxWidth()
58+
modifier = Modifier.fillMaxWidth().weight(1f)
6359
)
6460

65-
Spacer(modifier = Modifier.weight(1f))
66-
6761
Display(
6862
text = stringResource(R.string.onboarding__multiple_header).withAccent(accentColor = Colors.Yellow),
6963
modifier = Modifier.padding(horizontal = 32.dp)

0 commit comments

Comments
 (0)