diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/components/FileItemList.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/components/FileItemList.kt index 8fff79a9d..eaa615803 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/components/FileItemList.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/components/FileItemList.kt @@ -18,8 +18,7 @@ package com.infomaniak.swisstransfer.ui.components import androidx.compose.foundation.layout.Arrangement -import androidx.compose.foundation.layout.Spacer -import androidx.compose.foundation.layout.height +import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.lazy.grid.* import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier @@ -47,6 +46,7 @@ fun FileItemList( columns = GridCells.Adaptive(150.dp), verticalArrangement = Arrangement.spacedBy(Margin.Medium), horizontalArrangement = Arrangement.spacedBy(Margin.Medium), + contentPadding = PaddingValues(bottom = Margin.Mini), ) { header?.let { @@ -66,11 +66,6 @@ fun FileItemList( onRemove = { onRemoveUid?.invoke(file.uid) }, ) } - - item( - span = { GridItemSpan(maxLineSpan) }, - content = { Spacer(modifier = Modifier.height(Margin.Mini)) }, - ) } }