mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-11 07:29:14 +01:00
ui: separate the artist appearances section from the album credits
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user