1
0
Fork 0
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:
Luke Pulverenti 2014-07-01 00:06:28 -04:00
parent d1a36e7c73
commit 9eecd4a9f8
4 changed files with 27 additions and 5 deletions

View file

@ -40,7 +40,7 @@
.videoTopControls {
padding: .7em 1em;
background-color: rgba(0, 0, 0, .5);
position: fixed;
position: absolute;
left: 0;
top: 0;
right: 0;
@ -50,7 +50,6 @@
.videoAdvancedControls {
text-align: right;
vertical-align: top;
float: right;
}
.videoControls .currentTime {

View file

@ -219,7 +219,7 @@
showTitle: true,
centerText: true,
lazy: true,
preferThumb: true,
autoThumb: true,
context: 'home'
});
html += '</div>';

View file

@ -570,7 +570,29 @@
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, {
type: "Backdrop",

View file

@ -280,7 +280,7 @@
$('.btnQueue', elem).on('click', onQueueButtonClick);
$('.btnInstantMix', elem).on('click', onInstantMixButtonClick);
$('.btnShuffle', elem).on('click', onShuffleButtonClick);
$('.btnPlayTrailer', elem).on('click', onShuffleButtonClick);
$('.btnPlayTrailer', elem).on('click', onTrailerButtonClick);
});
e.preventDefault();
@ -353,6 +353,7 @@
var elems = '.backdropPosterItem,.smallBackdropPosterItem,.portraitPosterItem,.squarePosterItem,.miniBackdropPosterItem';
if ($.browser.mobile) {
this.off('contextmenu.posterItemMenu', elems)
.on('contextmenu.posterItemMenu', elems, onPosterItemTapHold);
}