mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
only link to the gallery if there are images to show
This commit is contained in:
parent
53cca6425d
commit
1cc27da3eb
2 changed files with 12 additions and 8 deletions
|
@ -852,7 +852,7 @@ input[type="range"]::-ms-fill-upper {
|
||||||
|
|
||||||
|
|
||||||
@media all and (max-width: 600px) {
|
@media all and (max-width: 600px) {
|
||||||
.volumeButton, .volumeSlider, .fullscreenButton, .nowPlayingText {
|
.volumeButton, .volumeSlider, .nowPlayingText {
|
||||||
display: none!important;
|
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) {
|
@media all and (max-width: 750px) {
|
||||||
.positionSlider {
|
.positionSlider {
|
||||||
width: 50px;
|
width: 50px;
|
||||||
|
|
|
@ -1289,7 +1289,17 @@
|
||||||
|
|
||||||
var href = "itemgallery.html?" + identifierName + "=" + identifierValue;
|
var href = "itemgallery.html?" + identifierName + "=" + identifierValue;
|
||||||
|
|
||||||
html += "<a href='" + href + "'><img class='itemDetailImage' src='" + url + "' /></a>";
|
var linkToGallery = LibraryBrowser.shouldDisplayGallery(item);
|
||||||
|
|
||||||
|
if (linkToGallery) {
|
||||||
|
html += "<a href='" + href + "'>";
|
||||||
|
}
|
||||||
|
|
||||||
|
html += "<img class='itemDetailImage' src='" + url + "' />";
|
||||||
|
|
||||||
|
if (linkToGallery) {
|
||||||
|
html += "</a>";
|
||||||
|
}
|
||||||
|
|
||||||
return html;
|
return html;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue