Skip to content

Commit

Permalink
Make full list row clickable
Browse files Browse the repository at this point in the history
  • Loading branch information
nbradbury committed Oct 2, 2024
1 parent 093c07c commit 7e8dbe4
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,18 +121,23 @@ private fun UserLazyRow(
) {
LazyRow(
modifier = Modifier
.padding(all = userScreenPaddingDp)
.fillMaxWidth()
.clickable { onUserClick(user) }
) {
item {
UserAvatar(user.avatarUrls?.values?.firstOrNull())
Column(modifier = Modifier.padding(all = userScreenPaddingDp)) {
UserAvatar(user.avatarUrls?.values?.firstOrNull())
}
}

item {
Column(
modifier = Modifier
.padding(start = userScreenPaddingDp)
.padding(
top = userScreenPaddingDp,
bottom = userScreenPaddingDp,
end = userScreenPaddingDp
)
) {
Text(
text = user.name,
Expand Down

0 comments on commit 7e8dbe4

Please sign in to comment.