From 5412ab129efe0638650a1dc3e4388a56c5b40097 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 17 Jun 2014 13:46:52 -0400 Subject: [PATCH] update translations --- dashboard-ui/css/librarybrowser.css | 2 +- dashboard-ui/css/posteritem.css | 48 ++++++++++++++++-------- dashboard-ui/scripts/channelslatest.js | 4 +- dashboard-ui/scripts/musicrecommended.js | 8 ++-- 4 files changed, 40 insertions(+), 22 deletions(-) diff --git a/dashboard-ui/css/librarybrowser.css b/dashboard-ui/css/librarybrowser.css index 02e843e48..5824148a2 100644 --- a/dashboard-ui/css/librarybrowser.css +++ b/dashboard-ui/css/librarybrowser.css @@ -92,7 +92,7 @@ } .squareEhsContent { - max-width: 750px; + max-width: 900px; } } diff --git a/dashboard-ui/css/posteritem.css b/dashboard-ui/css/posteritem.css index 010d4a03b..84fd51c2f 100644 --- a/dashboard-ui/css/posteritem.css +++ b/dashboard-ui/css/posteritem.css @@ -125,14 +125,6 @@ text-align: center; } -.squarePosterItem { - width: 140px; -} - - .squarePosterItem .posterItemImage { - height: 140px; - } - .storeReviewCount { display: none; } @@ -203,6 +195,14 @@ background-color: rgba(143, 54, 168, 0.7); } +.squarePosterItem { + width: 140px; +} + + .squarePosterItem .posterItemImage { + height: 140px; + } + .backdropPosterItem { width: 128px; } @@ -341,14 +341,6 @@ .smallBackdropPosterItem .posterItemImage { height: 101.25px; } - - .miniBackdropPosterItem { - width: 168px; - } - - .miniBackdropPosterItem .posterItemImage { - height: 94.5px; - } } @media all and (min-width: 600px) { @@ -459,6 +451,30 @@ .backdropPosterItem .posterItemImage { height: 167.625px; } + + .miniBackdropPosterItem { + width: 180px; + } + + .miniBackdropPosterItem .posterItemImage { + height: 101.25px; + } + + .squarePosterItem { + width: 160px; + } + + .squarePosterItem .posterItemImage { + height: 160px; + } + + .portraitPosterItem { + width: 144px; + } + + .portraitPosterItem .posterItemImage { + height: 216px; + } } diff --git a/dashboard-ui/scripts/channelslatest.js b/dashboard-ui/scripts/channelslatest.js index 0effc317f..f2ea51bd1 100644 --- a/dashboard-ui/scripts/channelslatest.js +++ b/dashboard-ui/scripts/channelslatest.js @@ -20,9 +20,11 @@ function reloadFromChannel(page, channel, index) { + var screenWidth = $(window).width(); + var options = { - Limit: 7, + Limit: screenWidth >= 1920 ? 10 : (screenWidth >= 1440 ? 8 : (screenWidth >= 800 ? 6 : 6)), Fields: "PrimaryImageAspectRatio", Filters: "IsUnplayed", UserId: Dashboard.getCurrentUserId(), diff --git a/dashboard-ui/scripts/musicrecommended.js b/dashboard-ui/scripts/musicrecommended.js index 87c5ccd3d..85dd11112 100644 --- a/dashboard-ui/scripts/musicrecommended.js +++ b/dashboard-ui/scripts/musicrecommended.js @@ -13,7 +13,7 @@ SortBy: "DateCreated", SortOrder: "Descending", IncludeItemTypes: "MusicAlbum", - Limit: screenWidth >= 1920 ? 8 : (screenWidth >= 1440 ? 7 : 6), + Limit: screenWidth >= 1920 ? 8 : (screenWidth >= 1440 ? 8 : 6), Recursive: true, Fields: "PrimaryImageAspectRatio", ParentId: parentId @@ -36,7 +36,7 @@ SortBy: "DateCreated", SortOrder: "Descending", IncludeItemTypes: "Audio", - Limit: screenWidth >= 1920 ? 8 : (screenWidth >= 1440 ? 7 : 6), + Limit: screenWidth >= 1920 ? 8 : (screenWidth >= 1440 ? 8 : 6), Recursive: true, Fields: "PrimaryImageAspectRatio,AudioInfo", ParentId: parentId @@ -59,7 +59,7 @@ SortBy: "DatePlayed", SortOrder: "Descending", IncludeItemTypes: "Audio", - Limit: screenWidth >= 1920 ? 8 : (screenWidth >= 1440 ? 7 : 6), + Limit: screenWidth >= 1920 ? 8 : (screenWidth >= 1440 ? 8 : 6), Recursive: true, Fields: "PrimaryImageAspectRatio,AudioInfo", Filters: "IsPlayed", @@ -89,7 +89,7 @@ SortBy: "PlayCount", SortOrder: "Descending", IncludeItemTypes: "Audio", - Limit: screenWidth >= 1920 ? 14 : (screenWidth >= 1440 ? 14 : 12), + Limit: screenWidth >= 1920 ? 16 : (screenWidth >= 1440 ? 16 : 12), Recursive: true, Fields: "PrimaryImageAspectRatio,AudioInfo", Filters: "IsPlayed",