Skip to content

Commit c67a120

Browse files
committed
chore(bill/options): properly vertically align action content
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent 3fe5efe commit c67a120

1 file changed

Lines changed: 15 additions & 10 deletions

File tree

app/src/main/java/com/getcode/view/main/home/components/BillManagementOptions.kt

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ internal fun BillManagementOptions(
5050
) {
5151
Box {
5252
Row(
53-
modifier = Modifier.alpha(if (!isSending) 1f else 0f)
53+
modifier = Modifier.alpha(if (!isSending) 1f else 0f),
54+
verticalAlignment = Alignment.CenterVertically
5455
) {
5556
Image(
5657
painter = primaryAction.asset,
@@ -84,16 +85,20 @@ internal fun BillManagementOptions(
8485
contentPadding = PaddingValues(15.dp),
8586
backgroundColor = CodeTheme.colors.action,
8687
) {
87-
Image(
88-
painter = secondaryAction.asset,
89-
contentDescription = "",
90-
modifier = Modifier.size(18.dp)
91-
)
92-
secondaryAction.label?.let { label ->
93-
Text(
94-
modifier = Modifier.padding(start = 10.dp),
95-
text = label
88+
Row(
89+
verticalAlignment = Alignment.CenterVertically
90+
) {
91+
Image(
92+
painter = secondaryAction.asset,
93+
contentDescription = "",
94+
modifier = Modifier.size(18.dp)
9695
)
96+
secondaryAction.label?.let { label ->
97+
Text(
98+
modifier = Modifier.padding(start = 10.dp),
99+
text = label
100+
)
101+
}
97102
}
98103
}
99104
}

0 commit comments

Comments
 (0)