Skip to content

Commit

Permalink
CollectionView UI improvements
Browse files Browse the repository at this point in the history
Signed-off-by: dracarys18 <[email protected]>
  • Loading branch information
dracarys18 committed Nov 15, 2021
1 parent 25e103f commit 1f1994f
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ fun CollectionScreen(navController: NavController) {
@Composable
fun BookCard(data: BookData, modifier: Modifier, onClick: () -> Unit) {
Column(modifier = modifier.clickable(onClick = onClick)) {
Card {
Box {
Image(
painter = rememberImagePainter(
data.imageUrl.replace(
Expand All @@ -91,11 +91,16 @@ fun BookCard(data: BookData, modifier: Modifier, onClick: () -> Unit) {
contentScale = ContentScale.Fit
)
}
Row(modifier = Modifier.fillMaxWidth()) {
Row(
modifier = Modifier
.fillMaxWidth()
.padding(start = 8.dp)
) {
Text(
text = data.bookName,
maxLines = 2,
fontSize = 13.sp,
fontWeight = FontWeight.SemiBold,
style = MaterialTheme.typography.caption
)
}
Expand Down

0 comments on commit 1f1994f

Please sign in to comment.