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:
parent
2246bd8165
commit
b6992659d1
2 changed files with 4 additions and 8 deletions
|
@ -307,10 +307,8 @@
|
||||||
|
|
||||||
if (result.TotalRecordCount) {
|
if (result.TotalRecordCount) {
|
||||||
$('.btnClearLog', page).show();
|
$('.btnClearLog', page).show();
|
||||||
$('.legend', page).show();
|
|
||||||
} else {
|
} else {
|
||||||
$('.btnClearLog', page).hide();
|
$('.btnClearLog', page).hide();
|
||||||
$('.legend', page).hide();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -684,7 +684,7 @@
|
||||||
|
|
||||||
var html = "";
|
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') {
|
if (options.shape == 'auto') {
|
||||||
|
|
||||||
|
@ -699,14 +699,12 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!options.useAverageAspectRatio) {
|
|
||||||
primaryImageAspectRatio = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
for (var i = 0, length = items.length; i < length; i++) {
|
for (var i = 0, length = items.length; i < length; i++) {
|
||||||
|
|
||||||
var item = items[i];
|
var item = items[i];
|
||||||
|
|
||||||
|
primaryImageAspectRatio = options.useAverageAspectRatio ? LibraryBrowser.getAveragePrimaryImageAspectRatio([item]) : null;
|
||||||
|
|
||||||
var futureDateText;
|
var futureDateText;
|
||||||
|
|
||||||
if (item.PremiereDate) {
|
if (item.PremiereDate) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue