diff --git a/dashboard-ui/css/librarybrowser.css b/dashboard-ui/css/librarybrowser.css index 5b95f5b150..c31c3ddb36 100644 --- a/dashboard-ui/css/librarybrowser.css +++ b/dashboard-ui/css/librarybrowser.css @@ -152,7 +152,8 @@ } .galleryImage { - width: 120px; + max-height: 63px; + max-width: 300px; } .starRating { @@ -401,7 +402,7 @@ a.itemTag:hover { @media all and (min-width: 750px) { .galleryImage { - width: 150px; + max-height: 90px; } .viewMenuTextLink { @@ -426,9 +427,7 @@ a.itemTag:hover { @media all and (min-width: 1200px) { - .galleryImage { - width: 180px; - } + } @media all and (min-width: 650px) { diff --git a/dashboard-ui/scripts/librarybrowser.js b/dashboard-ui/scripts/librarybrowser.js index 09e7ac49eb..9b947694a4 100644 --- a/dashboard-ui/scripts/librarybrowser.js +++ b/dashboard-ui/scripts/librarybrowser.js @@ -1606,7 +1606,9 @@ createGalleryImage: function (item, type, tag, index) { - var lightboxWidth = 800; + var screenWidth = Math.max(screen.height, screen.width); + screenWidth = Math.min(screenWidth, 1280); + var html = ''; if (typeof (index) == "undefined") index = 0; @@ -1614,7 +1616,7 @@ html += '
'; html += ''; html += ''; html += '
'; @@ -1623,7 +1625,7 @@ html += 'Close'; html += '';