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

Hide card padders in image loader

This commit is contained in:
Bill Thornton 2022-02-28 00:10:29 -05:00
parent e89e92e25c
commit 4dd645bbfa
3 changed files with 14 additions and 5 deletions

View file

@ -1357,9 +1357,9 @@ import ServerConnections from '../ServerConnections';
// TV Channel logos are transparent so skip the placeholder to avoid overlapping
if (imgUrl && item.Type !== 'TvChannel') {
cardPadderIcon = getDefaultText(item, {
...options,
// Always use an icon
defaultCardImageIcon: 'folder'
defaultCardImageIcon: 'folder',
...options
});
}
@ -1529,6 +1529,8 @@ import ServerConnections from '../ServerConnections';
return '<span class="cardImageIcon material-icons collections" aria-hidden="true"></span>';
case 'Playlist':
return '<span class="cardImageIcon material-icons view_list" aria-hidden="true"></span>';
case 'Photo':
return '<span class="cardImageIcon material-icons photo" aria-hidden="true"></span>';
case 'PhotoAlbum':
return '<span class="cardImageIcon material-icons photo_album" aria-hidden="true"></span>';
}