From 4700f42e87da950aed452cf6785a9c3a707ddd47 Mon Sep 17 00:00:00 2001 From: Kevin Boulongne Date: Thu, 7 Nov 2024 14:02:30 +0100 Subject: [PATCH] review: Replace last item Spacer with `contentPadding` --- .../swisstransfer/ui/components/FileItemList.kt | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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)) }, - ) } }