Skip to content

Commit

Permalink
review: Replace last item Spacer with contentPadding
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinBoulongne committed Nov 7, 2024
1 parent 4dc5c09 commit 4700f42
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 {
Expand All @@ -66,11 +66,6 @@ fun FileItemList(
onRemove = { onRemoveUid?.invoke(file.uid) },
)
}

item(
span = { GridItemSpan(maxLineSpan) },
content = { Spacer(modifier = Modifier.height(Margin.Mini)) },
)
}
}

Expand Down

0 comments on commit 4700f42

Please sign in to comment.