mirror of
https://github.com/JustinZeus/Wholphin.git
synced 2026-07-09 08:01:20 +02:00
Use circular cards for people (#691)
## Description Clips person images to a circle. The rectangle is still used in grid pages like favorite people. This PR also updates the fallback image to use a person icon if there is no image for that person Also adds role/job to discover pages' people rows ### Related issues Closes #682 ### Screenshots 
This commit is contained in:
parent
5cb3662995
commit
7c018f9a37
7 changed files with 189 additions and 50 deletions
|
|
@ -184,7 +184,7 @@ data class DiscoverItem(
|
|||
id = credit.id!!,
|
||||
type = SeerrItemType.fromString(credit.mediaType, SeerrItemType.PERSON),
|
||||
title = credit.name ?: credit.title,
|
||||
subtitle = null,
|
||||
subtitle = credit.character,
|
||||
overview = credit.overview,
|
||||
availability =
|
||||
SeerrAvailability.from(credit.mediaInfo?.status)
|
||||
|
|
@ -199,7 +199,7 @@ data class DiscoverItem(
|
|||
id = credit.id!!,
|
||||
type = SeerrItemType.fromString(credit.mediaType, SeerrItemType.PERSON),
|
||||
title = credit.name ?: credit.title,
|
||||
subtitle = null,
|
||||
subtitle = credit.job,
|
||||
overview = credit.overview,
|
||||
availability =
|
||||
SeerrAvailability.from(credit.mediaInfo?.status)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
package com.github.damontecres.wholphin.data.model
|
||||
|
||||
import androidx.compose.runtime.Stable
|
||||
import org.jellyfin.sdk.api.client.ApiClient
|
||||
import org.jellyfin.sdk.api.client.extensions.imageApi
|
||||
import org.jellyfin.sdk.model.UUID
|
||||
|
|
@ -7,6 +8,7 @@ import org.jellyfin.sdk.model.api.BaseItemPerson
|
|||
import org.jellyfin.sdk.model.api.ImageType
|
||||
import org.jellyfin.sdk.model.api.PersonKind
|
||||
|
||||
@Stable
|
||||
data class Person(
|
||||
val id: UUID,
|
||||
val name: String?,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue