Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix shadow and ripple on Popular cards.
Change-Id: Id256da2041e7132b80f6f5b7501fcf569127adb6
  • Loading branch information
nickbutcher committed Jul 2, 2020
commit 3bfc4a701b209ccd12e7a69bcf0fe369bf48a658
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,9 @@ private fun HomeScreenPopularSection(
style = MaterialTheme.typography.subtitle1
)
}
HorizontalScroller(modifier = Modifier.padding(end = 16.dp, bottom = 16.dp)) {
HorizontalScroller(modifier = Modifier.padding(end = 16.dp)) {
posts.forEach { post ->
PostCardPopular(post, navigateTo, Modifier.padding(start = 16.dp))
PostCardPopular(post, navigateTo, Modifier.padding(start = 16.dp, bottom = 16.dp))
}
}
HomeScreenDivider()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,8 @@ fun PostCardPopular(
Card(
shape = MaterialTheme.shapes.medium,
modifier = modifier.preferredSize(280.dp, 240.dp)
.clickable(onClick = { navigateTo(Screen.Article(post.id)) })
) {
Column {
Column(modifier = Modifier.clickable(onClick = { navigateTo(Screen.Article(post.id)) })) {
val image = post.image ?: imageResource(R.drawable.placeholder_4_3)
Image(
asset = image,
Expand Down