From 6bca66191ff1eb75c0c9b3c1b24de00625a10053 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 7 Nov 2013 13:04:51 -0500 Subject: [PATCH] upgrade js api client, remove open sans font reference --- ApiClient.js | 2 +- dashboard-ui/css/posteritem.css | 46 ++++++++++++++++++----- dashboard-ui/plugincatalog.html | 1 - dashboard-ui/scripts/plugincatalogpage.js | 7 +++- packages.config | 2 +- 5 files changed, 44 insertions(+), 14 deletions(-) diff --git a/ApiClient.js b/ApiClient.js index 151e62462f..e72d48e3e9 100644 --- a/ApiClient.js +++ b/ApiClient.js @@ -3570,7 +3570,7 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout, wi }); }; - self.createPackageReview = function(review) { + self.createPackageReview = function (review) { var url = self.getUrl("PackageReviews/" + review.id, review); diff --git a/dashboard-ui/css/posteritem.css b/dashboard-ui/css/posteritem.css index d136e18dbe..99f9dd6267 100644 --- a/dashboard-ui/css/posteritem.css +++ b/dashboard-ui/css/posteritem.css @@ -37,14 +37,14 @@ } .posterItemStoreText { - font-family: 'Open Sans', sans-serif; - font-weight: normal; - font-size: 16px; + font-family: 'Open Sans', sans-serif; + font-weight: normal; text-overflow: ellipsis; overflow: hidden; text-wrap: none; white-space: nowrap; text-shadow: none; + padding-left: 2px; } @@ -84,18 +84,22 @@ } .storeItem { - width: 270px; - display: inline-block; - margin: 10px; + display: inline-block; + margin: 0 15px 15px 0; } -.storePosterItem { - width: 270px; +.storeItem, .storePosterItem { + width: 160px; } + .storePosterItem .posterItemImage { - height: 150px; + height: 90px; } +.storeReviewCount { + display: none; +} + .backdropPosterItem { width: 160px; @@ -148,6 +152,14 @@ .backdropPosterItem .posterItemImage { height: 108px; } + + .storeItem, .storePosterItem { + width: 192px; + } + + .storePosterItem .posterItemImage { + height: 108px; + } } @media all and (min-width: 750px) { @@ -190,6 +202,22 @@ .smallBackdropPosterItem .posterItemImage { height: 105px; } + + .storeItem, .storePosterItem { + width: 270px; + } + + .storePosterItem .posterItemImage { + height: 152px; + } + + .posterItemStoreText { + font-size: 18px; + } + + .storeReviewCount { + display: inline; + } } @media all and (min-width: 1440px) { diff --git a/dashboard-ui/plugincatalog.html b/dashboard-ui/plugincatalog.html index 03e9612bbb..93ba24ecb5 100644 --- a/dashboard-ui/plugincatalog.html +++ b/dashboard-ui/plugincatalog.html @@ -2,7 +2,6 @@ Plugins -
diff --git a/dashboard-ui/scripts/plugincatalogpage.js b/dashboard-ui/scripts/plugincatalogpage.js index 368a5f390c..f8a47d1655 100644 --- a/dashboard-ui/scripts/plugincatalogpage.js +++ b/dashboard-ui/scripts/plugincatalogpage.js @@ -119,7 +119,7 @@ html += ""; - html += "
"; + html += "
"; var installedPlugin = plugin.isApp ? null : installedPlugins.filter(function (ip) { return ip.Name == plugin.name; @@ -136,8 +136,11 @@ html += "
"; html += plugin.price > 0 ? "$" + plugin.price.toFixed(2) : "Free"; html += getRatingHtml(plugin.avgRating, plugin.id, plugin.name); + + html += ""; html += " " + plugin.totalRatings + " Reviews"; - + html += ""; + if (plugin.isPremium && plugin.isRegistered) { html += " ®"; } diff --git a/packages.config b/packages.config index ad8173057b..5ab9688806 100644 --- a/packages.config +++ b/packages.config @@ -1,6 +1,6 @@  - + \ No newline at end of file