From e03dddfd2b4869386daa9b407a6b330ec3f7b4eb Mon Sep 17 00:00:00 2001 From: Gibran Chevalley Date: Mon, 11 Nov 2024 12:48:18 +0100 Subject: [PATCH] Fix transfert type button's spacing --- .../importfiles/components/TransferTypeButton.kt | 1 - .../importfiles/components/TransferTypeButtons.kt | 7 +++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/importfiles/components/TransferTypeButton.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/importfiles/components/TransferTypeButton.kt index dab38170a..8f80f0559 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/importfiles/components/TransferTypeButton.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/importfiles/components/TransferTypeButton.kt @@ -44,7 +44,6 @@ fun TransferTypeButton( Button( modifier = Modifier - .padding(Margin.Micro) .height(Dimens.LargeButtonHeight) .border(width = Dimens.BorderWidth, color = borderColor, shape = CustomShapes.SMALL), shape = CustomShapes.SMALL, diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/importfiles/components/TransferTypeButtons.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/importfiles/components/TransferTypeButtons.kt index 3aa431ae9..bfb04fe9c 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/importfiles/components/TransferTypeButtons.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/newtransfer/importfiles/components/TransferTypeButtons.kt @@ -20,8 +20,8 @@ package com.infomaniak.swisstransfer.ui.screen.newtransfer.importfiles.component import androidx.annotation.PluralsRes import androidx.annotation.StringRes import androidx.compose.foundation.horizontalScroll +import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Row -import androidx.compose.foundation.layout.padding import androidx.compose.foundation.rememberScrollState import androidx.compose.material3.Surface import androidx.compose.runtime.Composable @@ -41,9 +41,8 @@ import com.infomaniak.swisstransfer.ui.utils.PreviewLightAndDark @Composable fun TransferTypeButtons(transferType: GetSetCallbacks) { Row( - modifier = Modifier - .horizontalScroll(rememberScrollState()) - .padding(horizontal = Margin.Mini), + modifier = Modifier.horizontalScroll(rememberScrollState()), + horizontalArrangement = Arrangement.spacedBy(Margin.Mini), ) { for (transferTypeEntry in TransferType.entries) { TransferTypeButton(