mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
restore progress bar on detail page
This commit is contained in:
parent
0c23a1a971
commit
f06105e688
3 changed files with 33 additions and 3 deletions
|
@ -551,6 +551,20 @@ a.itemTag:hover {
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.detailImageProgressContainer {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 6px;
|
||||||
|
right: 0;
|
||||||
|
left: 0;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.detailImageProgressContainer progress {
|
||||||
|
width: 100%;
|
||||||
|
margin: 0 auto;
|
||||||
|
height: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
@media all and (max-width: 550px) {
|
@media all and (max-width: 550px) {
|
||||||
|
|
||||||
.desktopViewMenuLink {
|
.desktopViewMenuLink {
|
||||||
|
|
|
@ -38,6 +38,7 @@
|
||||||
useAverageAspectRatio: true,
|
useAverageAspectRatio: true,
|
||||||
shape: "backdrop",
|
shape: "backdrop",
|
||||||
showTitle: true,
|
showTitle: true,
|
||||||
|
showProgressBar: true,
|
||||||
showParentTitle: true,
|
showParentTitle: true,
|
||||||
overlayText: true
|
overlayText: true
|
||||||
});
|
});
|
||||||
|
|
|
@ -946,10 +946,14 @@
|
||||||
|
|
||||||
if (options.showProgressBar) {
|
if (options.showProgressBar) {
|
||||||
|
|
||||||
|
var progressHtml = LibraryBrowser.getItemProgressBarHtml(item);
|
||||||
|
|
||||||
|
if (progressHtml || !options.overlayText) {
|
||||||
html += "<div class='posterItemText posterItemProgress'>";
|
html += "<div class='posterItemText posterItemProgress'>";
|
||||||
html += LibraryBrowser.getItemProgressBarHtml(item) || " ";
|
html += progressHtml || " ";
|
||||||
html += "</div>";
|
html += "</div>";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (overlayText) {
|
if (overlayText) {
|
||||||
html += "</div>";
|
html += "</div>";
|
||||||
|
@ -1980,6 +1984,7 @@
|
||||||
|
|
||||||
var linkToGallery = LibraryBrowser.shouldDisplayGallery(item);
|
var linkToGallery = LibraryBrowser.shouldDisplayGallery(item);
|
||||||
|
|
||||||
|
html += '<div style="position:relative;">';
|
||||||
if (linkToGallery) {
|
if (linkToGallery) {
|
||||||
html += "<a class='itemDetailGalleryLink' href='" + href + "'>";
|
html += "<a class='itemDetailGalleryLink' href='" + href + "'>";
|
||||||
}
|
}
|
||||||
|
@ -1990,6 +1995,16 @@
|
||||||
html += "</a>";
|
html += "</a>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var progressHtml = LibraryBrowser.getItemProgressBarHtml(item);
|
||||||
|
|
||||||
|
if (progressHtml) {
|
||||||
|
html += '<div class="detailImageProgressContainer">';
|
||||||
|
html += progressHtml;
|
||||||
|
html += "</div>";
|
||||||
|
}
|
||||||
|
|
||||||
|
html += "</div>";
|
||||||
|
|
||||||
return html;
|
return html;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue