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

Update server and quick connect icons

This commit is contained in:
Bill Thornton 2022-10-20 17:38:33 -04:00
parent 8af09253c8
commit 9ef78533d0
3 changed files with 5 additions and 14 deletions

View file

@ -28,24 +28,15 @@ import cardBuilder from '../../../components/cardbuilder/cardBuilder';
const items = servers.map(function (server) {
return {
name: server.Name,
showIcon: true,
icon: 'cast',
icon: 'storage',
cardType: '',
id: server.Id,
server: server
};
});
let html = items.map(function (item) {
let cardImageContainer;
if (item.showIcon) {
cardImageContainer = '<span class="cardImageIcon material-icons ' + item.icon + '" aria-hidden="true"></span>';
} else {
cardImageContainer = '<div class="cardImage" style="' + item.cardImageStyle + '"></div>';
}
// TODO move card creation code to Card component
const cardImageContainer = '<span class="cardImageIcon material-icons ' + item.icon + '" aria-hidden="true"></span>';
let cssClass = 'card overflowSquareCard loginSquareCard scalableCard overflowSquareCard-scalable';
if (layoutManager.tv) {