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:
parent
2776720c6f
commit
f4d5653ed4
9 changed files with 34 additions and 7 deletions
|
@ -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 {
|
||||
|
|
|
@ -65,7 +65,10 @@
|
|||
context: context,
|
||||
lazy: true,
|
||||
preferThumb: true,
|
||||
showDetailsMenu: true
|
||||
showDetailsMenu: true,
|
||||
centerText: true,
|
||||
overlayPlayButton: AppInfo.enableAppLayouts,
|
||||
fullWidthOnMobile: AppInfo.enableAppLayouts
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -124,7 +124,8 @@
|
|||
overlayText: true,
|
||||
showTitle: true,
|
||||
lazy: true,
|
||||
showDetailsMenu: true
|
||||
showDetailsMenu: true,
|
||||
overlayPlayButton: true
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -311,7 +311,8 @@
|
|||
context: 'home',
|
||||
lazy: true,
|
||||
cardLayout: cardLayout,
|
||||
showDetailsMenu: true
|
||||
showDetailsMenu: true,
|
||||
overlayPlayButton: true
|
||||
});
|
||||
html += '</div>';
|
||||
}
|
||||
|
|
|
@ -63,7 +63,9 @@
|
|||
overlayText: false,
|
||||
centerText: true,
|
||||
lazy: true,
|
||||
showTitle: false
|
||||
showTitle: false,
|
||||
overlayPlayButton: AppInfo.enableAppLayouts,
|
||||
fullWidthOnMobile: AppInfo.enableAppLayouts
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue