From 869219b9977512a8e0ba2f5a5a9c86c00e92cc24 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 7 May 2013 14:57:16 -0400 Subject: [PATCH] ensure correct image tag is used --- dashboard-ui/css/librarybrowser.css | 2 +- dashboard-ui/scripts/librarybrowser.js | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/dashboard-ui/css/librarybrowser.css b/dashboard-ui/css/librarybrowser.css index ad6a39127..471d648a2 100644 --- a/dashboard-ui/css/librarybrowser.css +++ b/dashboard-ui/css/librarybrowser.css @@ -167,7 +167,7 @@ @media all and (min-width: 650px) { .libraryPage .ui-content { - padding: 10px 20px 100px; + padding: 0 20px 100px; } .viewControls, .listTopPaging { diff --git a/dashboard-ui/scripts/librarybrowser.js b/dashboard-ui/scripts/librarybrowser.js index e63966134..3469e8f61 100644 --- a/dashboard-ui/scripts/librarybrowser.js +++ b/dashboard-ui/scripts/librarybrowser.js @@ -379,7 +379,14 @@ if (type == 'Backdrop') { options.tag = item.BackdropImageTags[index]; - } else { + } + else if (type == 'Screenshot') { + options.tag = item.ScreenshotImageTags[index]; + } + else if (type == 'Primary') { + options.tag = item.PrimaryImageTag || item.ImageTags[type]; + } + else { options.tag = item.ImageTags[type]; }