Skip to content

Commit

Permalink
fix: padding for single asset in import media [WPB-1839] (#2844)
Browse files Browse the repository at this point in the history
  • Loading branch information
Garzas authored Apr 2, 2024
1 parent 6ec89ee commit 9077058
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -373,10 +373,15 @@ private fun ImportMediaContent(
val itemWidth =
if (isMultipleImport) dimensions().importedMediaAssetSize + horizontalPadding.times(2)
else screenWidth - (horizontalPadding * 2)
val contentPadding = PaddingValues(
start = horizontalPadding,
end = (screenWidth - itemWidth + horizontalPadding)
)
val contentPadding = if (isMultipleImport) {
PaddingValues(
start = horizontalPadding,
end = (screenWidth - itemWidth + horizontalPadding)
)
} else {
val totalPadding = screenWidth - itemWidth
PaddingValues(start = totalPadding / 2, end = totalPadding / 2)
}
val lazyListState = rememberLazyListState()
if (state.isImporting) {
Box(
Expand Down

0 comments on commit 9077058

Please sign in to comment.