Skip to content

Commit

Permalink
Merge pull request #163 from Infomaniak/fix-transfer-type-buttons-spa…
Browse files Browse the repository at this point in the history
…cing

Fix transfert type button's spacing
  • Loading branch information
LunarX authored Nov 11, 2024
2 parents c809b93 + e03dddf commit 000b2cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -41,9 +41,8 @@ import com.infomaniak.swisstransfer.ui.utils.PreviewLightAndDark
@Composable
fun TransferTypeButtons(transferType: GetSetCallbacks<TransferType>) {
Row(
modifier = Modifier
.horizontalScroll(rememberScrollState())
.padding(horizontal = Margin.Mini),
modifier = Modifier.horizontalScroll(rememberScrollState()),
horizontalArrangement = Arrangement.spacedBy(Margin.Mini),
) {
for (transferTypeEntry in TransferType.entries) {
TransferTypeButton(
Expand Down

0 comments on commit 000b2cf

Please sign in to comment.