Skip to content

Commit 0434bc8

Browse files
committed
chore: align raw kin amount in AmountArea
was implemented as Alignment.CenterVertically with an offset padding? Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent 506b67c commit 0434bc8

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)