diff --git a/dashboard-ui/css/librarybrowser.css b/dashboard-ui/css/librarybrowser.css index 68d9c18ca9..a2da9373b1 100644 --- a/dashboard-ui/css/librarybrowser.css +++ b/dashboard-ui/css/librarybrowser.css @@ -69,13 +69,33 @@ max-width: 300px; } -.libraryItemsGrid .imgUserItemRating { - width: 20px; - height: 20px; +.libraryItemsGrid { + margin: 0 auto; + border-spacing: 0; + border-collapse: collapse; + max-width: 100%; } -.libraryItemsGrid a { - text-shadow: none; + .libraryItemsGrid a { + text-shadow: none; + } + + .libraryItemsGrid th, .libraryItemsGrid td { + vertical-align: top; + text-align: left; + padding: 10px; + } + + .libraryItemsGrid th { + padding-bottom: 1em; + } + + .libraryItemsGrid td { + border-top: 1px solid #555; + } + +.tabletColumn, .desktopColumn { + display: none!important; } @media all and (min-width: 650px) { @@ -84,6 +104,12 @@ } } +@media all and (min-width: 750px) { + .tabletColumn { + display: table-cell!important; + } +} + @media all and (min-width: 1200px) { .libraryPage .ui-content { @@ -94,8 +120,8 @@ max-width: 850px; } - .libraryItemsGridContainer { - padding: 0 10%; + .desktopColumn { + display: table-cell!important; } } @@ -103,18 +129,10 @@ .ehsContent { max-width: 900px; } - - .libraryItemsGridContainer { - padding: 0 20%; - } } @media all and (min-width: 1920px) { .ehsContent { max-width: 1000px; } - - .libraryItemsGridContainer { - padding: 0 25%; - } } diff --git a/dashboard-ui/scripts/movies.js b/dashboard-ui/scripts/movies.js index 084832d252..a8af498fbb 100644 --- a/dashboard-ui/scripts/movies.js +++ b/dashboard-ui/scripts/movies.js @@ -9,23 +9,24 @@ SortOrder: "Ascending", IncludeItemTypes: "Movie", Recursive: true, - Fields: "PrimaryImageAspectRatio,UserData" + Fields: "PrimaryImageAspectRatio,UserData,DisplayMediaType" }; function getTableHtml(items) { - var html = '
'; html += ' | Name | '; - html += 'Year | '; - html += 'Rating | '; - html += 'Runtime | '; - html += 'Community Rating | '; - html += ''; + html += ' | Type | '; + html += 'Year | '; + html += 'Rating | '; + html += 'Runtime | '; + html += 'Community Rating | '; + html += ''; html += ' |
---|