Move `AuthorsCarousel`'s padding into `AuthorItem`

Fixes #18
pull/19/head
Simon Marquis 3 years ago
parent ef42543b32
commit 1106714707

@ -63,7 +63,6 @@ fun AuthorsCarousel(
onAuthorClick = { following ->
onAuthorClick(followableAuthor.author.id, following)
},
modifier = Modifier.padding(8.dp)
)
}
}
@ -90,12 +89,16 @@ fun AuthorItem(
role = Role.Button,
onValueChange = { newFollowing -> onAuthorClick(newFollowing) },
)
.sizeIn(maxWidth = 48.dp)
.padding(vertical = 8.dp, horizontal = 4.dp)
.sizeIn(maxWidth = 56.dp)
.semantics(mergeDescendants = true) {
stateDescription = "$followDescription ${author.name}"
}
) {
Box(modifier = Modifier.fillMaxWidth()) {
Box(
modifier = Modifier.fillMaxWidth(),
contentAlignment = Alignment.Center,
) {
AsyncImage(
modifier = Modifier
.size(48.dp)

Loading…
Cancel
Save