diff --git a/dashboard-ui/css/posteritem.css b/dashboard-ui/css/posteritem.css index a173da6d2..dbf6fe44f 100644 --- a/dashboard-ui/css/posteritem.css +++ b/dashboard-ui/css/posteritem.css @@ -129,7 +129,7 @@ .myLibraryPosterItem { - width: 148px; + width: 42%; } .myLibraryPosterItem .posterItemImage { @@ -256,6 +256,10 @@ @media all and (min-width: 360px) { + .myLibraryPosterItem { + width: 45%; + } + .backdropPosterItem { width: 148px; } @@ -342,7 +346,7 @@ @media all and (min-width: 600px) { .myLibraryPosterItem { - width: 180px; + width: 30%; } } @@ -367,6 +371,9 @@ @media all and (min-width: 1000px) { + .myLibraryPosterItem { + width: 23%; + } .smallBackdropPosterItem { width: 208px; @@ -402,6 +409,10 @@ @media all and (min-width: 1440px) { + .myLibraryPosterItem { + width: 19%; + } + .squarePosterItem { width: 167px; } diff --git a/dashboard-ui/notificationlist.html b/dashboard-ui/notificationlist.html index fa78fdf8a..76263593d 100644 --- a/dashboard-ui/notificationlist.html +++ b/dashboard-ui/notificationlist.html @@ -19,12 +19,10 @@
'; - html += (item.OverviewHtml || item.Overview || ''); + html += (item.Overview || ''); html += '
'; html += ''; diff --git a/dashboard-ui/scripts/notificationlist.js b/dashboard-ui/scripts/notificationlist.js index 90a7cdd9d..1e6cd02ec 100644 --- a/dashboard-ui/scripts/notificationlist.js +++ b/dashboard-ui/scripts/notificationlist.js @@ -9,18 +9,18 @@ Notifications.showNotificationsList(startIndex, limit, elem, btn); - elem.on("click", ".btnPreviousPage", function(e) { + elem.on("click", ".btnPreviousPage", function (e) { - e.preventDefault(); + e.preventDefault(); - startIndex = startIndex - limit; + startIndex = startIndex - limit; - if (startIndex < 0) startIndex = 0; + if (startIndex < 0) startIndex = 0; - Notifications.showNotificationsList(startIndex, limit, elem, btn); + Notifications.showNotificationsList(startIndex, limit, elem, btn); - }) - .on("click", ".btnNextPage", function(e) { + }) + .on("click", ".btnNextPage", function (e) { e.preventDefault(); @@ -29,16 +29,16 @@ Notifications.showNotificationsList(startIndex, limit, elem, btn); }); - - $(".readOnlyContent").on("click", ".btnMarkRead", function() { - var ids = $(".notificationsList div").map(function() { + $(".readOnlyContent").on("click", ".btnMarkRead", function () { + + var ids = $(".notificationsList div").map(function () { return this.getAttribute('data-notificationid'); }).get(); - Notifications.markNotificationsRead(ids, function() { + Notifications.markNotificationsRead(ids, function () { Notifications.showNotificationsList(startIndex, limit, elem, btn); diff --git a/dashboard-ui/scripts/notifications.js b/dashboard-ui/scripts/notifications.js index 039580cb7..bc4bb30c5 100644 --- a/dashboard-ui/scripts/notifications.js +++ b/dashboard-ui/scripts/notifications.js @@ -82,7 +82,7 @@ }); var startIndex = 0; - var limit = 5; + var limit = 4; var elem = $('.notificationsFlyoutlist'); var markReadButton = $('.btnMarkReadContainer');