Enhance ShowDetail component: display season and episode information alongside asset names in a more structured format, improving user experience. Update AirPage to simplify program labels by removing episode index display, ensuring clarity in the streaming interface.

This commit is contained in:
Leonid Pershin
2026-07-24 21:55:28 +03:00
parent 1b078cdfd3
commit 517f11c897
2 changed files with 17 additions and 5 deletions
+2 -2
View File
@@ -167,7 +167,7 @@ function splitEpg(entries: ScheduleEntryDto[]) {
}
function programLabel(entry: ScheduleEntryDto, t: (key: string) => string) {
// На странице эфира — только название шоу (сезон/серия видны в админке).
if (entry.kind === 'Ad') return t('air.ad')
const name = entry.showName ?? '—'
return entry.episodeIndex != null ? `${name} · ${t('air.episode')} ${entry.episodeIndex + 1}` : name
return entry.showName ?? '—'
}