Find place for SongItem trailingIcon

This commit is contained in:
vfsfitvnm
2022-10-05 11:59:12 +02:00
parent 5e6787567e
commit aafb8f036d
4 changed files with 43 additions and 31 deletions

View File

@@ -146,13 +146,27 @@ fun SongItem(
}
ItemInfoContainer {
BasicText(
trailingContent?.let {
Row(verticalAlignment = Alignment.CenterVertically) {
BasicText(
text = title ?: "",
style = typography.xs.semiBold,
maxLines = 1,
overflow = TextOverflow.Clip,
modifier = Modifier
.weight(1f)
)
it()
}
} ?: BasicText(
text = title ?: "",
style = typography.xs.semiBold,
maxLines = 1,
overflow = TextOverflow.Ellipsis,
)
Row(verticalAlignment = Alignment.CenterVertically) {
BasicText(
text = authors ?: "",