Skip to content

Commit d06714d

Browse files
authored
Merge pull request #170 from code-payments/chore/align-amount-area-kin-value-properly
chore: align raw kin amount in AmountArea
2 parents 3fcb5fd + 0434bc8 commit d06714d

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

app/src/main/java/com/getcode/view/main/giveKin/AmountArea.kt

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,13 @@ fun AmountArea(
8080
modifier = Modifier
8181
.wrapContentHeight()
8282
.align(Alignment.CenterHorizontally),
83+
verticalAlignment = Alignment.CenterVertically
8384
) {
8485
if (isAltCaption && isAltCaptionKinIcon) {
8586
Image(
8687
modifier = Modifier
8788
.padding(end = CodeTheme.dimens.staticGrid.x1)
88-
.requiredSize(CodeTheme.dimens.staticGrid.x2)
89-
.align(CenterVertically),
89+
.requiredSize(CodeTheme.dimens.staticGrid.x2),
9090
painter = painterResource(
9191
id = if (altCaptionColor == Alert) R.drawable.ic_kin_red
9292
else R.drawable.ic_kin_brand
@@ -98,12 +98,7 @@ fun AmountArea(
9898
ConnectionStatus(state = networkState)
9999
} else if (captionText != null) {
100100
Text(
101-
modifier = Modifier
102-
.align(CenterVertically)
103-
.padding(
104-
top = CodeTheme.dimens.grid.x2,
105-
bottom = CodeTheme.dimens.grid.x3
106-
),
101+
107102
text = captionText,
108103
color = if (isAltCaption) (altCaptionColor ?: Alert) else BrandLight,
109104
style = CodeTheme.typography.body1.copy(

0 commit comments

Comments
 (0)