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

add + button to song lists

This commit is contained in:
Luke Pulverenti 2017-01-12 14:50:38 -05:00
parent dc02d75161
commit 3ed10f65e5
12 changed files with 76 additions and 16 deletions

View file

@ -247,6 +247,9 @@ define(['datetime', 'imageLoader', 'connectionManager', 'itemHelper', 'focusMana
else if (options.shape === 'square') {
options.width = options.width || 243;
}
else if (options.shape === 'banner') {
options.width = options.width || 800;
}
}
options.width = options.width || getImageWidth(options.shape);
@ -504,6 +507,9 @@ define(['datetime', 'imageLoader', 'connectionManager', 'itemHelper', 'focusMana
if (shape.indexOf('square') !== -1) {
return 1;
}
if (shape.indexOf('banner') !== -1) {
return (1000 / 185);
}
}
return null;
}