From c65b8a2cf4569687b0efaed74d88037a5638280e Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sun, 2 Aug 2015 22:12:52 -0400 Subject: [PATCH] fix live tv image --- dashboard-ui/css/librarybrowser.css | 2 +- dashboard-ui/scripts/itemdetailpage.js | 7 ++++++- dashboard-ui/scripts/librarybrowser.js | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/dashboard-ui/css/librarybrowser.css b/dashboard-ui/css/librarybrowser.css index 30dcb0b50f..c23c2fd531 100644 --- a/dashboard-ui/css/librarybrowser.css +++ b/dashboard-ui/css/librarybrowser.css @@ -1443,7 +1443,7 @@ span.itemCommunityRating:not(:empty) + .userDataIcons { width: 70px; height: 70px; background-repeat: no-repeat; - background-size: cover; + background-size: contain; background-position: center center; } diff --git a/dashboard-ui/scripts/itemdetailpage.js b/dashboard-ui/scripts/itemdetailpage.js index dae19241ab..3c6b1a6eb0 100644 --- a/dashboard-ui/scripts/itemdetailpage.js +++ b/dashboard-ui/scripts/itemdetailpage.js @@ -1568,8 +1568,13 @@ } function onItemDeleted(e, itemId) { + if (currentItem && currentItem.Id == itemId) { - Dashboard.navigate('index.html'); + if (currentItem.Type == 'Recording') { + Dashboard.navigate('livetv.html'); + } else { + Dashboard.navigate('index.html'); + } } } diff --git a/dashboard-ui/scripts/librarybrowser.js b/dashboard-ui/scripts/librarybrowser.js index d0c417762c..35d6465b3d 100644 --- a/dashboard-ui/scripts/librarybrowser.js +++ b/dashboard-ui/scripts/librarybrowser.js @@ -1106,13 +1106,13 @@ if (textlines.length > 1 && verticalTextLines > 1) { html += '

'; - html += textlines[1]; + html += textlines[1] || ' '; html += '

'; } if (textlines.length > 2 && verticalTextLines > 2) { html += '

'; - html += textlines[2]; + html += textlines[2] || ' '; html += '

'; }