Skip to content

Commit

Permalink
Converted bottom padding to top
Browse files Browse the repository at this point in the history
When the `HomeRow`s are animated in from the top, if there is a padding,  they are drawn behind the padding as they are translated down vertically. This makes it less obvious.
  • Loading branch information
imashnake0 committed Mar 29, 2024
1 parent 5cf99ab commit 1f87cc1
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ fun HomeScreen(
}
},
contentModifier = Modifier.padding(
top = LocalPaddings.current.large,
bottom = dimensionResource(coreR.dimen.navigation_bar_height)
),
verticalArrangement = Arrangement.Top
Expand Down Expand Up @@ -217,7 +216,7 @@ fun HomeRow(
exit = fadeOut() + shrinkVertically()
) {
Column(
modifier = modifier,
modifier = modifier.padding(top = LocalPaddings.current.large),
verticalArrangement = Arrangement.spacedBy(LocalPaddings.current.medium)
) {
Text(
Expand All @@ -228,10 +227,7 @@ fun HomeRow(
.landscapeCutoutPadding()
)

MediaSmallRow(
mediaList = list,
modifier = Modifier.padding(bottom = LocalPaddings.current.large)
) { media ->
MediaSmallRow(list) { media ->
MediaSmall(
image = media.coverImage,
label = media.title,
Expand Down

0 comments on commit 1f87cc1

Please sign in to comment.