1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

add more play buttons

This commit is contained in:
Luke Pulverenti 2015-07-17 18:32:00 -04:00
parent 2776720c6f
commit f4d5653ed4
9 changed files with 34 additions and 7 deletions

View file

@ -358,6 +358,13 @@
width: 42%;
}
@media all and (max-width: 500px) {
.backdropCard.fullWidthCardOnMobile {
width: 100% !important;
}
}
@media all and (max-width: 1200px) {
.portraitCard .cardOverlayInner {

View file

@ -65,7 +65,10 @@
context: context,
lazy: true,
preferThumb: true,
showDetailsMenu: true
showDetailsMenu: true,
centerText: true,
overlayPlayButton: AppInfo.enableAppLayouts,
fullWidthOnMobile: AppInfo.enableAppLayouts
});
}

View file

@ -1484,6 +1484,10 @@
var cssClass = "card";
if (options.fullWidthOnMobile) {
cssClass += " fullWidthCardOnMobile";
}
if (options.autoThumb && item.ImageTags && item.ImageTags.Primary && item.PrimaryImageAspectRatio && item.PrimaryImageAspectRatio >= 1.5) {
width = posterWidth;

View file

@ -492,7 +492,7 @@
var type = card.getAttribute('data-itemtype');
var isFolder = card.getAttribute('data-isfolder') == 'true';
var mediaType = card.getAttribute('data-mediatype');
var resumePosition = parseInt(card.getAttribute('data-resumeposition'));
var resumePosition = parseInt(card.getAttribute('data-positionticks'));
if (type == 'MusicAlbum' || type == 'MusicArtist' || type == 'MusicGenre' || type == 'Playlist') {
isFolder = true;

View file

@ -548,6 +548,11 @@
return true;
}
// Don't use viblast with windows phone, not working at the moment.
if ($.browser.msie && $.browser.mobile) {
return false;
}
// viblast can help us here
//return true;
return window.MediaSource != null;

View file

@ -124,7 +124,8 @@
overlayText: true,
showTitle: true,
lazy: true,
showDetailsMenu: true
showDetailsMenu: true,
overlayPlayButton: true
});
}

View file

@ -311,7 +311,8 @@
context: 'home',
lazy: true,
cardLayout: cardLayout,
showDetailsMenu: true
showDetailsMenu: true,
overlayPlayButton: true
});
html += '</div>';
}

View file

@ -63,7 +63,9 @@
overlayText: false,
centerText: true,
lazy: true,
showTitle: false
showTitle: false,
overlayPlayButton: AppInfo.enableAppLayouts,
fullWidthOnMobile: AppInfo.enableAppLayouts
});
}

View file

@ -84,7 +84,10 @@
context: context,
lazy: true,
preferThumb: true,
showDetailsMenu: true
showDetailsMenu: true,
centerText: true,
overlayPlayButton: AppInfo.enableAppLayouts,
fullWidthOnMobile: AppInfo.enableAppLayouts
});
}
@ -162,7 +165,8 @@
overlayText: screenWidth >= 800 && !AppInfo.hasLowImageBandwidth,
lazy: true,
context: 'tv',
showDetailsMenu: true
showDetailsMenu: true,
overlayPlayButton: true
});
}