feat: Do not show all unwacthed episodes only 9+

This commit is contained in:
2026-02-09 20:09:28 +01:00
parent eff2e3a0e9
commit 57a9f4f236

View File

@@ -12,7 +12,9 @@ import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
@Composable
fun UnwatchedEpisodeIndicator(
@@ -35,9 +37,10 @@ fun UnwatchedEpisodeIndicator(
.clip(CircleShape)
) {
Text(
text = unwatchedCount.toString(),
text = if (unwatchedCount > 9) "9+" else unwatchedCount.toString(),
color = foregroundColor.copy(alpha = 0.8f),
style = MaterialTheme.typography.bodyMedium
fontWeight = FontWeight.Bold,
fontSize = 12.sp
)
}
}