From a941266e00641e37a4410f73215b8a72b88dbaf9 Mon Sep 17 00:00:00 2001 From: Kevin Boulongne Date: Tue, 12 Nov 2024 10:11:08 +0100 Subject: [PATCH] fix: Add some missing padding to SwissTransferBottomSheet --- .../ui/components/SwissTransferBottomSheet.kt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/components/SwissTransferBottomSheet.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/components/SwissTransferBottomSheet.kt index bc094dd20..f597e31c3 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/components/SwissTransferBottomSheet.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/components/SwissTransferBottomSheet.kt @@ -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, @@ -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)) }