Skip to content

Commit

Permalink
🐛 fix(AdapterItems.kt): Replace LazyRow with Row for artist display (f…
Browse files Browse the repository at this point in the history
…ixed #737)
  • Loading branch information
maxrave-dev committed Jan 31, 2025
1 parent e8157b8 commit 6c768df
Showing 1 changed file with 20 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -587,34 +587,30 @@ fun HomeItemSong(
animationMode = MarqueeAnimationMode.Immediately,
).focusable(),
)
LazyRow(verticalAlignment = Alignment.CenterVertically) {
item {
androidx.compose.animation.AnimatedVisibility(visible = data.isExplicit == true) {
ExplicitBadge(
modifier =
Modifier
.size(20.dp)
.padding(end = 4.dp)
.weight(1f),
)
}
}
item {
Text(
text = data.artists.toListName().connectArtists(),
style = typo.bodySmall,
maxLines = 1,
Row(verticalAlignment = Alignment.CenterVertically) {
AnimatedVisibility(visible = data.isExplicit == true) {
ExplicitBadge(
modifier =
Modifier
.width(180.dp)
.wrapContentHeight(align = Alignment.CenterVertically)
.basicMarquee(
iterations = Int.MAX_VALUE,
animationMode = MarqueeAnimationMode.Immediately,
).focusable()
.padding(vertical = 3.dp),
.size(20.dp)
.padding(end = 4.dp)
.weight(1f),
)
}
Text(
text = data.artists.toListName().connectArtists(),
style = typo.bodySmall,
maxLines = 1,
modifier =
Modifier
.width(180.dp)
.wrapContentHeight(align = Alignment.CenterVertically)
.basicMarquee(
iterations = Int.MAX_VALUE,
animationMode = MarqueeAnimationMode.Immediately,
).focusable()
.padding(vertical = 3.dp),
)
}
Text(
text = data.album?.name ?: stringResource(id = R.string.songs),
Expand Down

0 comments on commit 6c768df

Please sign in to comment.