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%;
|
width: 42%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media all and (max-width: 500px) {
|
||||||
|
|
||||||
|
.backdropCard.fullWidthCardOnMobile {
|
||||||
|
width: 100% !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@media all and (max-width: 1200px) {
|
@media all and (max-width: 1200px) {
|
||||||
|
|
||||||
.portraitCard .cardOverlayInner {
|
.portraitCard .cardOverlayInner {
|
||||||
|
|
|
@ -65,7 +65,10 @@
|
||||||
context: context,
|
context: context,
|
||||||
lazy: true,
|
lazy: true,
|
||||||
preferThumb: true,
|
preferThumb: true,
|
||||||
showDetailsMenu: true
|
showDetailsMenu: true,
|
||||||
|
centerText: true,
|
||||||
|
overlayPlayButton: AppInfo.enableAppLayouts,
|
||||||
|
fullWidthOnMobile: AppInfo.enableAppLayouts
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1484,6 +1484,10 @@
|
||||||
|
|
||||||
var cssClass = "card";
|
var cssClass = "card";
|
||||||
|
|
||||||
|
if (options.fullWidthOnMobile) {
|
||||||
|
cssClass += " fullWidthCardOnMobile";
|
||||||
|
}
|
||||||
|
|
||||||
if (options.autoThumb && item.ImageTags && item.ImageTags.Primary && item.PrimaryImageAspectRatio && item.PrimaryImageAspectRatio >= 1.5) {
|
if (options.autoThumb && item.ImageTags && item.ImageTags.Primary && item.PrimaryImageAspectRatio && item.PrimaryImageAspectRatio >= 1.5) {
|
||||||
|
|
||||||
width = posterWidth;
|
width = posterWidth;
|
||||||
|
|
|
@ -492,7 +492,7 @@
|
||||||
var type = card.getAttribute('data-itemtype');
|
var type = card.getAttribute('data-itemtype');
|
||||||
var isFolder = card.getAttribute('data-isfolder') == 'true';
|
var isFolder = card.getAttribute('data-isfolder') == 'true';
|
||||||
var mediaType = card.getAttribute('data-mediatype');
|
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') {
|
if (type == 'MusicAlbum' || type == 'MusicArtist' || type == 'MusicGenre' || type == 'Playlist') {
|
||||||
isFolder = true;
|
isFolder = true;
|
||||||
|
|
|
@ -548,6 +548,11 @@
|
||||||
return true;
|
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
|
// viblast can help us here
|
||||||
//return true;
|
//return true;
|
||||||
return window.MediaSource != null;
|
return window.MediaSource != null;
|
||||||
|
|
|
@ -124,7 +124,8 @@
|
||||||
overlayText: true,
|
overlayText: true,
|
||||||
showTitle: true,
|
showTitle: true,
|
||||||
lazy: true,
|
lazy: true,
|
||||||
showDetailsMenu: true
|
showDetailsMenu: true,
|
||||||
|
overlayPlayButton: true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -311,7 +311,8 @@
|
||||||
context: 'home',
|
context: 'home',
|
||||||
lazy: true,
|
lazy: true,
|
||||||
cardLayout: cardLayout,
|
cardLayout: cardLayout,
|
||||||
showDetailsMenu: true
|
showDetailsMenu: true,
|
||||||
|
overlayPlayButton: true
|
||||||
});
|
});
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
}
|
}
|
||||||
|
|
|
@ -63,7 +63,9 @@
|
||||||
overlayText: false,
|
overlayText: false,
|
||||||
centerText: true,
|
centerText: true,
|
||||||
lazy: true,
|
lazy: true,
|
||||||
showTitle: false
|
showTitle: false,
|
||||||
|
overlayPlayButton: AppInfo.enableAppLayouts,
|
||||||
|
fullWidthOnMobile: AppInfo.enableAppLayouts
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -84,7 +84,10 @@
|
||||||
context: context,
|
context: context,
|
||||||
lazy: true,
|
lazy: true,
|
||||||
preferThumb: true,
|
preferThumb: true,
|
||||||
showDetailsMenu: true
|
showDetailsMenu: true,
|
||||||
|
centerText: true,
|
||||||
|
overlayPlayButton: AppInfo.enableAppLayouts,
|
||||||
|
fullWidthOnMobile: AppInfo.enableAppLayouts
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -162,7 +165,8 @@
|
||||||
overlayText: screenWidth >= 800 && !AppInfo.hasLowImageBandwidth,
|
overlayText: screenWidth >= 800 && !AppInfo.hasLowImageBandwidth,
|
||||||
lazy: true,
|
lazy: true,
|
||||||
context: 'tv',
|
context: 'tv',
|
||||||
showDetailsMenu: true
|
showDetailsMenu: true,
|
||||||
|
overlayPlayButton: true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue