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

fix image stretching in web client

This commit is contained in:
Luke Pulverenti 2014-01-22 19:39:26 -05:00
parent 2246bd8165
commit b6992659d1
2 changed files with 4 additions and 8 deletions

View file

@ -684,7 +684,7 @@
var html = "";
var primaryImageAspectRatio = options.useAverageAspectRatio || options.shape == 'auto' ? LibraryBrowser.getAveragePrimaryImageAspectRatio(items) : null;
var primaryImageAspectRatio = options.shape == 'auto' ? LibraryBrowser.getAveragePrimaryImageAspectRatio(items) : null;
if (options.shape == 'auto') {
@ -699,14 +699,12 @@
}
}
if (!options.useAverageAspectRatio) {
primaryImageAspectRatio = null;
}
for (var i = 0, length = items.length; i < length; i++) {
var item = items[i];
primaryImageAspectRatio = options.useAverageAspectRatio ? LibraryBrowser.getAveragePrimaryImageAspectRatio([item]) : null;
var futureDateText;
if (item.PremiereDate) {
@ -1498,7 +1496,7 @@
html += '<div class="starRatingValue">';
html += item.CommunityRating.toFixed(1);
html += '</div>';
}
}
if (item.CriticRating != null) {