From 1cc27da3ebc2f2383e1d6ab2f009b20f33969d97 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sat, 1 Jun 2013 10:40:28 -0400 Subject: [PATCH] only link to the gallery if there are images to show --- dashboard-ui/css/site.css | 8 +------- dashboard-ui/scripts/librarybrowser.js | 12 +++++++++++- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/dashboard-ui/css/site.css b/dashboard-ui/css/site.css index 2e1c73d46..854d383da 100644 --- a/dashboard-ui/css/site.css +++ b/dashboard-ui/css/site.css @@ -852,7 +852,7 @@ input[type="range"]::-ms-fill-upper { @media all and (max-width: 600px) { - .volumeButton, .volumeSlider, .fullscreenButton, .nowPlayingText { + .volumeButton, .volumeSlider, .nowPlayingText { display: none!important; } @@ -865,12 +865,6 @@ input[type="range"]::-ms-fill-upper { } } -@media all and (max-width: 500px) { - .itemVideo:not(.fullscreenVideo) { - width: 220px; - } -} - @media all and (max-width: 750px) { .positionSlider { width: 50px; diff --git a/dashboard-ui/scripts/librarybrowser.js b/dashboard-ui/scripts/librarybrowser.js index 48ac602f7..3185893e5 100644 --- a/dashboard-ui/scripts/librarybrowser.js +++ b/dashboard-ui/scripts/librarybrowser.js @@ -1289,7 +1289,17 @@ var href = "itemgallery.html?" + identifierName + "=" + identifierValue; - html += ""; + var linkToGallery = LibraryBrowser.shouldDisplayGallery(item); + + if (linkToGallery) { + html += ""; + } + + html += ""; + + if (linkToGallery) { + html += ""; + } return html; },