Fixes to user interface (#374)

- Fixes a crash if the same person has multiple roles in an item
- Better tab focus behavior, especially on series pages
- Use consistent series production years on all pages
- Slightly decrease size and increase space on home page
This commit is contained in:
damontecres 2025-12-05 11:35:50 -05:00 committed by GitHub
parent 887b7b597e
commit a197f6911b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 73 additions and 63 deletions

View file

@ -5,6 +5,7 @@ import com.github.damontecres.wholphin.ui.formatDateTime
import com.github.damontecres.wholphin.ui.nav.Destination
import com.github.damontecres.wholphin.ui.seasonEpisode
import com.github.damontecres.wholphin.ui.seasonEpisodePadded
import com.github.damontecres.wholphin.ui.seriesProductionYears
import kotlinx.serialization.Serializable
import kotlinx.serialization.Transient
import org.jellyfin.sdk.api.client.ApiClient
@ -28,7 +29,11 @@ data class BaseItem(
val subtitle
get() =
if (type == BaseItemKind.EPISODE) data.seasonEpisode + " - " + name else data.productionYear?.toString()
when (type) {
BaseItemKind.EPISODE -> data.seasonEpisode + " - " + name
BaseItemKind.SERIES -> data.seriesProductionYears
else -> data.productionYear?.toString()
}
val subtitleLong: String? by lazy {
if (type == BaseItemKind.EPISODE) {