Only use server provided aspect ratios if >0 (#453)

Fixes #451
This commit is contained in:
damontecres 2025-12-13 16:43:49 -05:00 committed by GitHub
parent 6edcfb1067
commit d2e1c4683d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 8 additions and 10 deletions

View file

@ -47,6 +47,9 @@ data class BaseItem(
}
}
@Transient
val aspectRatio: Float? = data.primaryImageAspectRatio?.toFloat()?.takeIf { it > 0 }
@Transient
val indexNumber = data.indexNumber ?: dateAsIndex()