1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Fix square posters

This commit is contained in:
LJQ 2024-05-23 11:32:48 +08:00
parent bb9b4ce8bb
commit adb662eb0b

View file

@ -21,7 +21,7 @@ export function buildCardImage(
shape = CardShape.Banner; shape = CardShape.Banner;
} else if (item.PrimaryImageAspectRatio >= 1.33) { } else if (item.PrimaryImageAspectRatio >= 1.33) {
shape = CardShape.Backdrop; shape = CardShape.Backdrop;
} else if (item.PrimaryImageAspectRatio > 0.71) { } else if (item.PrimaryImageAspectRatio > 0.8) {
shape = CardShape.Square; shape = CardShape.Square;
} else { } else {
shape = CardShape.Portrait; shape = CardShape.Portrait;