diff --git a/dashboard-ui/css/card.css b/dashboard-ui/css/card.css index 513fc2c09b..87a79a9536 100644 --- a/dashboard-ui/css/card.css +++ b/dashboard-ui/css/card.css @@ -304,7 +304,7 @@ } .coveredCardImage { - background-size: cover; + background-size: 100% 100%; background-position: center center; } diff --git a/dashboard-ui/scripts/librarybrowser.js b/dashboard-ui/scripts/librarybrowser.js index 4117dc1346..e8a74c4062 100644 --- a/dashboard-ui/scripts/librarybrowser.js +++ b/dashboard-ui/scripts/librarybrowser.js @@ -1712,8 +1712,6 @@ var dateText; - var allowImageStretching = !(Dashboard.lastSystemInfo && Dashboard.lastSystemInfo.ImageEnhancers && Dashboard.lastSystemInfo.ImageEnhancers.length); - for (var i = 0, length = items.length; i < length; i++) { var item = items[i]; @@ -1750,13 +1748,13 @@ } } - html += LibraryBrowser.getPosterViewItemHtml(item, i, options, primaryImageAspectRatio, thumbWidth, posterWidth, squareSize, bannerWidth, allowImageStretching); + html += LibraryBrowser.getPosterViewItemHtml(item, i, options, primaryImageAspectRatio, thumbWidth, posterWidth, squareSize, bannerWidth); } return html; }, - getPosterViewItemHtml: function (item, index, options, primaryImageAspectRatio, thumbWidth, posterWidth, squareSize, bannerWidth, allowImageStretching) { + getPosterViewItemHtml: function (item, index, options, primaryImageAspectRatio, thumbWidth, posterWidth, squareSize, bannerWidth) { var html = ''; var imgUrl = null; @@ -2016,10 +2014,6 @@ imageCssClass += " iconCardImage"; } - if (coverImage && !options.coverImage && !allowImageStretching) { - coverImage = false; - } - if (coverImage) { imageCssClass += " coveredCardImage"; }