mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add additional view settings
This commit is contained in:
parent
d1a36e7c73
commit
9eecd4a9f8
4 changed files with 27 additions and 5 deletions
|
@ -40,7 +40,7 @@
|
||||||
.videoTopControls {
|
.videoTopControls {
|
||||||
padding: .7em 1em;
|
padding: .7em 1em;
|
||||||
background-color: rgba(0, 0, 0, .5);
|
background-color: rgba(0, 0, 0, .5);
|
||||||
position: fixed;
|
position: absolute;
|
||||||
left: 0;
|
left: 0;
|
||||||
top: 0;
|
top: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
|
@ -50,7 +50,6 @@
|
||||||
.videoAdvancedControls {
|
.videoAdvancedControls {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
float: right;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.videoControls .currentTime {
|
.videoControls .currentTime {
|
||||||
|
|
|
@ -219,7 +219,7 @@
|
||||||
showTitle: true,
|
showTitle: true,
|
||||||
centerText: true,
|
centerText: true,
|
||||||
lazy: true,
|
lazy: true,
|
||||||
preferThumb: true,
|
autoThumb: true,
|
||||||
context: 'home'
|
context: 'home'
|
||||||
});
|
});
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
|
|
|
@ -570,7 +570,29 @@
|
||||||
|
|
||||||
var downloadHeight = 576;
|
var downloadHeight = 576;
|
||||||
|
|
||||||
if (options.preferBackdrop && item.BackdropImageTags && item.BackdropImageTags.length) {
|
if (options.autoThumb && item.ImageTags && item.ImageTags.Primary && item.PrimaryImageAspectRatio && item.PrimaryImageAspectRatio >= 1.5) {
|
||||||
|
|
||||||
|
height = 400;
|
||||||
|
width = primaryImageAspectRatio ? Math.round(height * primaryImageAspectRatio) : null;
|
||||||
|
|
||||||
|
imgUrl = ApiClient.getImageUrl(item.Id, {
|
||||||
|
type: "Primary",
|
||||||
|
height: height,
|
||||||
|
width: width,
|
||||||
|
tag: item.ImageTags.Primary
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
else if (options.autoThumb && item.ImageTags && item.ImageTags.Thumb) {
|
||||||
|
|
||||||
|
imgUrl = ApiClient.getScaledImageUrl(item.Id, {
|
||||||
|
type: "Thumb",
|
||||||
|
maxWidth: downloadHeight,
|
||||||
|
tag: item.ImageTags.Thumb
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
else if (options.preferBackdrop && item.BackdropImageTags && item.BackdropImageTags.length) {
|
||||||
|
|
||||||
imgUrl = ApiClient.getScaledImageUrl(item.Id, {
|
imgUrl = ApiClient.getScaledImageUrl(item.Id, {
|
||||||
type: "Backdrop",
|
type: "Backdrop",
|
||||||
|
|
|
@ -280,7 +280,7 @@
|
||||||
$('.btnQueue', elem).on('click', onQueueButtonClick);
|
$('.btnQueue', elem).on('click', onQueueButtonClick);
|
||||||
$('.btnInstantMix', elem).on('click', onInstantMixButtonClick);
|
$('.btnInstantMix', elem).on('click', onInstantMixButtonClick);
|
||||||
$('.btnShuffle', elem).on('click', onShuffleButtonClick);
|
$('.btnShuffle', elem).on('click', onShuffleButtonClick);
|
||||||
$('.btnPlayTrailer', elem).on('click', onShuffleButtonClick);
|
$('.btnPlayTrailer', elem).on('click', onTrailerButtonClick);
|
||||||
});
|
});
|
||||||
|
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
@ -353,6 +353,7 @@
|
||||||
var elems = '.backdropPosterItem,.smallBackdropPosterItem,.portraitPosterItem,.squarePosterItem,.miniBackdropPosterItem';
|
var elems = '.backdropPosterItem,.smallBackdropPosterItem,.portraitPosterItem,.squarePosterItem,.miniBackdropPosterItem';
|
||||||
|
|
||||||
if ($.browser.mobile) {
|
if ($.browser.mobile) {
|
||||||
|
|
||||||
this.off('contextmenu.posterItemMenu', elems)
|
this.off('contextmenu.posterItemMenu', elems)
|
||||||
.on('contextmenu.posterItemMenu', elems, onPosterItemTapHold);
|
.on('contextmenu.posterItemMenu', elems, onPosterItemTapHold);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue