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

update live tv styles

This commit is contained in:
Luke Pulverenti 2014-05-29 10:19:12 -04:00
parent 81488383b6
commit a859e2b4be
8 changed files with 19 additions and 17 deletions

View file

@ -472,12 +472,12 @@
var primaryImageAspectRatio;
if (options.shape == 'auto') {
if (options.shape == 'auto' || options.shape == 'autosmall') {
primaryImageAspectRatio = options.shape == 'auto' ? LibraryBrowser.getAveragePrimaryImageAspectRatio(items) : null;
primaryImageAspectRatio = LibraryBrowser.getAveragePrimaryImageAspectRatio(items);
if (primaryImageAspectRatio && Math.abs(primaryImageAspectRatio - 1.777777778) < .3) {
options.shape = 'backdrop';
options.shape = options.shape == 'auto' ? 'backdrop' : 'smallBackdrop';
}
else if (primaryImageAspectRatio && Math.abs(primaryImageAspectRatio - 1) < .33) {
options.coverImage = true;