ui: separate the artist appearances section from the album credits

This commit is contained in:
austinried
2026-10-19 08:33:55 +00:00
parent 8941eb6702
commit ab32a7bfbe
@@ -450,7 +450,7 @@ fun ArtistDetailScreen(
} }
if (albums.appearances.isNotEmpty()) { if (albums.appearances.isNotEmpty()) {
item(span = { GridItemSpan(maxLineSpan) }) { item(span = { GridItemSpan(maxLineSpan) }) {
ArtistSectionHeader(stringResource(R.string.artist_section_appearances), Icons.Rounded.Mic) ArtistSectionHeader(stringResource(R.string.artist_section_appearances), Icons.Rounded.Mic, topGap = 16.dp)
} }
itemsIndexed(albums.appearances, key = { _, album -> album.id }) { index, album -> itemsIndexed(albums.appearances, key = { _, album -> album.id }) { index, album ->
ArtistAlbumCard( ArtistAlbumCard(
@@ -654,10 +654,14 @@ internal fun splitBioCollapsed(
private fun ArtistSectionHeader( private fun ArtistSectionHeader(
text: String, text: String,
icon: ImageVector, icon: ImageVector,
topGap: Dp = 0.dp,
) { ) {
Row( Row(
verticalAlignment = Alignment.CenterVertically, verticalAlignment = Alignment.CenterVertically,
modifier = Modifier.fillMaxWidth().padding(start = 16.dp, end = 16.dp, bottom = 4.dp), modifier =
Modifier
.fillMaxWidth()
.padding(start = 16.dp, end = 16.dp, top = topGap, bottom = 4.dp),
) { ) {
Icon( Icon(
imageVector = icon, imageVector = icon,