fix: remove duplicate episode title in horizontal cw card

This commit is contained in:
tapframe 2026-05-12 23:27:53 +05:30
parent 5bc00f9ffb
commit 8678660705

View file

@ -355,8 +355,6 @@ private fun ContinueWatchingWideCard(
.padding(layout.wideContentPadding),
verticalArrangement = Arrangement.SpaceBetween,
) {
val isEpisodeCard = item.seasonNumber != null && item.episodeNumber != null
val hasEpisodeTitle = !item.episodeTitle.isNullOrBlank()
val wideMetaLine = localizedContinueWatchingSubtitle(item)
Column(verticalArrangement = Arrangement.spacedBy(6.dp)) {
Row(
@ -389,18 +387,6 @@ private fun ContinueWatchingWideCard(
maxLines = 1,
overflow = TextOverflow.Ellipsis,
)
if (hasEpisodeTitle) {
Text(
text = item.episodeTitle.orEmpty(),
style = MaterialTheme.typography.bodySmall.copy(
fontSize = layout.wideMetaSize,
fontWeight = FontWeight.Medium,
),
color = MaterialTheme.colorScheme.onSurfaceVariant,
maxLines = 1,
overflow = TextOverflow.Ellipsis,
)
}
}
if (item.progressFraction > 0f) {