Skip to content

Commit

Permalink
Include album artist in album cards
Browse files Browse the repository at this point in the history
  • Loading branch information
brdunn committed Oct 16, 2023
1 parent 7cf6776 commit 54cb5a9
Showing 1 changed file with 16 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,21 @@ fun AlbumCard(onClick: () -> Unit, album: Album, modifier: Modifier = Modifier)
contentScale = ContentScale.Crop
)

Text(
text = album.title,
style = MaterialTheme.typography.bodySmall,
overflow = TextOverflow.Ellipsis,
maxLines = 1
)
Column {
Text(
text = album.title,
style = MaterialTheme.typography.bodyMedium,
overflow = TextOverflow.Ellipsis,
maxLines = 1
)

Text(
text = album.artistName,
style = MaterialTheme.typography.bodySmall,
overflow = TextOverflow.Ellipsis,
maxLines = 1
)
}
}
}

Expand All @@ -62,7 +71,7 @@ fun AlbumCardPreview() {
title = "52nd Street",
thumb = "/library/metadata/45209/thumb/1641184622",
artistId = "",
artistThumb = "",
artistThumb = "Billy Joel",
review = "",
numSongs = 0,
year = "",
Expand Down

0 comments on commit 54cb5a9

Please sign in to comment.