diff --git a/dashboard-ui/css/posteritem.css b/dashboard-ui/css/posteritem.css index e67641470e..93646f2ad5 100644 --- a/dashboard-ui/css/posteritem.css +++ b/dashboard-ui/css/posteritem.css @@ -5,7 +5,7 @@ display: inline-block; font-size: 14px; position: relative; - color: #fff; + color: #fff!important; text-decoration: none; text-align: left; overflow: hidden; @@ -20,7 +20,12 @@ .posterItemImage { background-size: contain; background-repeat: no-repeat; - background-position: left bottom; + background-position: center bottom; + background-color: #000; +} + +.transparentPosterItem .posterItemImage { + background-color: transparent; } .defaultPosterItemImage { diff --git a/dashboard-ui/scripts/Itemdetailpage.js b/dashboard-ui/scripts/Itemdetailpage.js index 0dff815334..c8f1471999 100644 --- a/dashboard-ui/scripts/Itemdetailpage.js +++ b/dashboard-ui/scripts/Itemdetailpage.js @@ -469,26 +469,28 @@ var item = items[i]; - html += '
'; - html += ''; + html += ''; var imageTags = item.ImageTags || {}; + var imgUrl; + if (imageTags.Primary) { - var imgUrl = ApiClient.getImageUrl(item.Id, { + imgUrl = ApiClient.getImageUrl(item.Id, { maxwidth: 500, tag: imageTags.Primary, type: "primary" }); - html += ''; } else { - html += ''; + imgUrl = "css/images/items/detail/video.png"; } - html += '
' + item.Name + '
'; - html += '
'; + html += '
'; + + html += '
' + item.Name + '
'; + html += '
'; } return html; diff --git a/dashboard-ui/scripts/plugincatalogpage.js b/dashboard-ui/scripts/plugincatalogpage.js index 7db37446a3..04da738a58 100644 --- a/dashboard-ui/scripts/plugincatalogpage.js +++ b/dashboard-ui/scripts/plugincatalogpage.js @@ -37,7 +37,7 @@ var html = ''; var plugin = availablePlugins[i]; - html += ""; + html += ""; if (plugin.thumbImage) { html += '
';