Skip to content

Commit 40c7201

Browse files
committed
chore(bill/mgmt): nudge horizontal arrangement between send and cancel
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent 5f8f934 commit 40c7201

1 file changed

Lines changed: 12 additions & 13 deletions

File tree

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

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@ package com.getcode.view.main.home.components
22

33
import androidx.compose.foundation.Image
44
import androidx.compose.foundation.background
5+
import androidx.compose.foundation.layout.Arrangement
56
import androidx.compose.foundation.layout.Box
67
import androidx.compose.foundation.layout.Row
78
import androidx.compose.foundation.layout.Spacer
89
import androidx.compose.foundation.layout.fillMaxWidth
910
import androidx.compose.foundation.layout.padding
1011
import androidx.compose.foundation.layout.size
1112
import androidx.compose.foundation.layout.width
13+
import androidx.compose.foundation.shape.CircleShape
1214
import androidx.compose.foundation.shape.RoundedCornerShape
1315
import androidx.compose.material.Text
1416
import androidx.compose.runtime.Composable
@@ -20,8 +22,10 @@ import androidx.compose.ui.res.painterResource
2022
import androidx.compose.ui.res.stringResource
2123
import androidx.compose.ui.unit.dp
2224
import com.getcode.R
25+
import com.getcode.theme.CodeTheme
2326
import com.getcode.theme.Gray50
2427
import com.getcode.theme.White
28+
import com.getcode.util.debugBounds
2529
import com.getcode.util.rememberedClickable
2630
import com.getcode.view.components.CodeCircularProgressIndicator
2731

@@ -43,16 +47,15 @@ internal fun BillManagementOptions(
4347
Row(
4448
modifier = Modifier
4549
.padding(bottom = 30.dp)
46-
.align(Alignment.BottomCenter)
50+
.align(Alignment.BottomCenter),
51+
horizontalArrangement = Arrangement.spacedBy(CodeTheme.dimens.inset)
4752
) {
4853
if (showSend) {
4954
Row(
5055
modifier = Modifier
51-
.background(Gray50, RoundedCornerShape(30.dp))
52-
.clip(RoundedCornerShape(30.dp))
53-
.rememberedClickable(enabled = !isSending) {
54-
onSend()
55-
}
56+
.background(Gray50, CircleShape)
57+
.clip(CircleShape)
58+
.rememberedClickable(enabled = !isSending) { onSend() }
5659
.padding(vertical = 15.dp, horizontal = 20.dp),
5760
verticalAlignment = Alignment.CenterVertically,
5861
) {
@@ -83,17 +86,13 @@ internal fun BillManagementOptions(
8386
}
8487

8588
}
86-
87-
Spacer(modifier = Modifier.width(16.dp))
8889
}
8990
if (showCancel) {
9091
Row(
9192
modifier = Modifier
92-
.background(Gray50, RoundedCornerShape(30.dp))
93-
.clip(RoundedCornerShape(30.dp))
94-
.rememberedClickable(enabled = canCancel) {
95-
onCancel()
96-
}
93+
.background(Gray50, CircleShape)
94+
.clip(CircleShape)
95+
.rememberedClickable(enabled = canCancel) { onCancel() }
9796
.padding(vertical = 15.dp, horizontal = 20.dp),
9897
verticalAlignment = Alignment.CenterVertically,
9998
) {

0 commit comments

Comments
 (0)