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

fix image scaling

This commit is contained in:
Luke Pulverenti 2016-01-24 14:39:13 -05:00
parent 6ccfa18e4f
commit fb0e8becca

View file

@ -1885,7 +1885,9 @@
if (primaryImageAspectRatio) { if (primaryImageAspectRatio) {
if (uiAspect) { if (uiAspect) {
coverImage = Math.abs(primaryImageAspectRatio - uiAspect) <= .2; if (Math.abs(primaryImageAspectRatio - uiAspect) <= .2) {
coverImage = true;
}
} }
} }
@ -1968,7 +1970,9 @@
if (primaryImageAspectRatio) { if (primaryImageAspectRatio) {
if (uiAspect) { if (uiAspect) {
coverImage = Math.abs(primaryImageAspectRatio - uiAspect) <= .2; if (Math.abs(primaryImageAspectRatio - uiAspect) <= .2) {
coverImage = true;
}
} }
} }
} }
@ -1996,7 +2000,9 @@
if (primaryImageAspectRatio) { if (primaryImageAspectRatio) {
if (uiAspect) { if (uiAspect) {
coverImage = Math.abs(primaryImageAspectRatio - uiAspect) <= .2; if (Math.abs(primaryImageAspectRatio - uiAspect) <= .2) {
coverImage = true;
}
} }
} }
} }