Skip to content

Commit

Permalink
fix: Add some missing padding to SwissTransferBottomSheet
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinBoulongne committed Nov 12, 2024
1 parent 61db8bc commit a941266
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,17 @@ private fun BottomSheetContent(
.verticalScroll(rememberScrollState()),
horizontalAlignment = Alignment.CenterHorizontally,
) {

val paddedModifier = Modifier.padding(horizontal = Margin.Medium)

imageVector?.let {
Image(imageVector = imageVector, contentDescription = null)
Image(modifier = paddedModifier, imageVector = imageVector, contentDescription = null)
Spacer(modifier = Modifier.height(Margin.Large))
}

title?.let {
Text(
modifier = paddedModifier,
text = it,
style = SwissTransferTheme.typography.bodyMedium,
color = SwissTransferTheme.colors.primaryTextColor,
Expand All @@ -115,9 +119,11 @@ private fun BottomSheetContent(

description?.let {
Text(
modifier = paddedModifier,
text = it,
style = SwissTransferTheme.typography.bodyRegular,
color = SwissTransferTheme.colors.secondaryTextColor,
textAlign = TextAlign.Center,
)
Spacer(modifier = Modifier.height(Margin.Large))
}
Expand Down

0 comments on commit a941266

Please sign in to comment.