From 11d47439e77613470b651a79e220e908f82e5e3e Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 12 Nov 2015 21:44:50 -0500 Subject: [PATCH] update image sizes --- dashboard-ui/css/card.css | 2 +- dashboard-ui/scripts/librarybrowser.js | 10 ++-------- 2 files changed, 3 insertions(+), 9 deletions(-) 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"; }