From 89ebf2744e2b0d7ddbcbb6ff4776b7176e4fa9c8 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 5 Jun 2013 00:01:22 -0400 Subject: [PATCH] fix for critic rating not showing --- dashboard-ui/css/librarybrowser.css | 15 +++++++++------ dashboard-ui/scripts/librarybrowser.js | 2 +- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/dashboard-ui/css/librarybrowser.css b/dashboard-ui/css/librarybrowser.css index 2d662e19df..af5e00eebe 100644 --- a/dashboard-ui/css/librarybrowser.css +++ b/dashboard-ui/css/librarybrowser.css @@ -175,7 +175,6 @@ } .rottentomatoesicon { - margin-left: 1em; display: inline-block; width: 17px; height: 17px; @@ -185,6 +184,10 @@ vertical-align: top; } +.starRating + .rottentomatoesicon { + margin-left: 1em; +} + .fresh { background-image: url(images/fresh.png); } @@ -347,11 +350,11 @@ a.itemTag:hover { margin-top: -30px; } - .itemDetailGalleryLink img:hover { - -moz-box-shadow: 0 0 20px 3px #2572EB; - -webkit-box-shadow: 0 0 20px 3px #2572EB; - box-shadow: 0 0 20px 3px #2572EB; - } +.itemDetailGalleryLink img:hover { + -moz-box-shadow: 0 0 20px 3px #2572EB; + -webkit-box-shadow: 0 0 20px 3px #2572EB; + box-shadow: 0 0 20px 3px #2572EB; +} .parentName { padding: .5em; diff --git a/dashboard-ui/scripts/librarybrowser.js b/dashboard-ui/scripts/librarybrowser.js index 26ec5ea8c2..a8f3cece2c 100644 --- a/dashboard-ui/scripts/librarybrowser.js +++ b/dashboard-ui/scripts/librarybrowser.js @@ -156,7 +156,7 @@ html += '
' + name + '
'; - if (item.CommunityRating) { + if (item.CommunityRating || item.CriticRating) { html += '

' + LibraryBrowser.getRatingHtml(item) + '

'; }