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

fix channel query by category

This commit is contained in:
Luke Pulverenti 2014-05-17 17:23:48 -04:00
parent 2cae955857
commit 382c0e393c
3 changed files with 21 additions and 10 deletions

View file

@ -479,9 +479,14 @@
if (primaryImageAspectRatio && Math.abs(primaryImageAspectRatio - 1.777777778) < .3) {
options.shape = 'backdrop';
}
else if (primaryImageAspectRatio && Math.abs(primaryImageAspectRatio - 1) < .3) {
else if (primaryImageAspectRatio && Math.abs(primaryImageAspectRatio - 1) < .34) {
options.coverImage = true;
options.shape = 'square';
}
else if (primaryImageAspectRatio && primaryImageAspectRatio > 1.9) {
options.shape = 'banner';
options.coverImage = true;
}
else {
options.shape = 'portrait';
}