mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix list avatars
This commit is contained in:
parent
78bf493400
commit
53f0a1d9c8
20 changed files with 41 additions and 67 deletions
|
@ -129,7 +129,7 @@
|
|||
itemHtml += '<a class="clearLink" href="' + item.Link + '" target="_blank">';
|
||||
itemHtml += '<paper-icon-item>';
|
||||
|
||||
itemHtml += '<paper-fab class="listAvatar blue" icon="dvr" item-icon></paper-fab>';
|
||||
itemHtml += '<paper-fab mini class="blue" icon="dvr" item-icon></paper-fab>';
|
||||
|
||||
itemHtml += '<paper-item-body three-line>';
|
||||
|
||||
|
@ -1094,10 +1094,10 @@ $(document).on('pageshow', "#dashboardPage", DashboardPage.onPageShow).on('pageb
|
|||
height: 40
|
||||
});
|
||||
|
||||
html += '<paper-fab class="listAvatar" style="background-color:' + color + ';background-image:url(\'' + userImgUrl + '\');background-repeat:no-repeat;background-position:center center;background-size: cover;" item-icon></paper-fab>';
|
||||
html += '<paper-fab mini style="background-color:' + color + ';background-image:url(\'' + userImgUrl + '\');background-repeat:no-repeat;background-position:center center;background-size: cover;" item-icon></paper-fab>';
|
||||
}
|
||||
else {
|
||||
html += '<paper-fab class="listAvatar" icon="dvr" style="background-color:' + color + '" item-icon></paper-fab>';
|
||||
html += '<paper-fab mini icon="dvr" style="background-color:' + color + '" item-icon></paper-fab>';
|
||||
}
|
||||
|
||||
html += '<paper-item-body three-line>';
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
var deviceHtml = '';
|
||||
deviceHtml += '<paper-icon-item>';
|
||||
|
||||
deviceHtml += '<paper-fab class="listAvatar" style="background:#999;" icon="tablet-android" item-icon></paper-fab>';
|
||||
deviceHtml += '<paper-fab mini style="background:#999;" icon="tablet-android" item-icon></paper-fab>';
|
||||
|
||||
deviceHtml += '<paper-item-body three-line>';
|
||||
deviceHtml += '<a class="clearLink" href="device.html?id=' + d.Id + '">';
|
||||
|
|
|
@ -1130,9 +1130,9 @@
|
|||
else if (review.Likes != null) {
|
||||
|
||||
if (review.Likes) {
|
||||
html += '<paper-fab class="listAvatar" style="background-color:transparent;background-image:url(\'css/images/fresh.png\');background-repeat:no-repeat;background-position:center center;background-size: cover;" item-icon></paper-fab>';
|
||||
html += '<paper-fab mini style="background-color:transparent;background-image:url(\'css/images/fresh.png\');background-repeat:no-repeat;background-position:center center;background-size: cover;" item-icon></paper-fab>';
|
||||
} else {
|
||||
html += '<paper-fab class="listAvatar" style="background-color:transparent;background-image:url(\'css/images/rotten.png\');background-repeat:no-repeat;background-position:center center;background-size: cover;" item-icon></paper-fab>';
|
||||
html += '<paper-fab mini style="background-color:transparent;background-image:url(\'css/images/rotten.png\');background-repeat:no-repeat;background-position:center center;background-size: cover;" item-icon></paper-fab>';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -39,22 +39,22 @@
|
|||
}
|
||||
|
||||
if (imgUrl) {
|
||||
html += '<paper-fab class="listAvatar blue" style="background-image:url(\'' + imgUrl + '\');background-repeat:no-repeat;background-position:center center;background-size: cover;" item-icon></paper-fab>';
|
||||
html += '<paper-fab mini class="blue" style="background-image:url(\'' + imgUrl + '\');background-repeat:no-repeat;background-position:center center;background-size: cover;" item-icon></paper-fab>';
|
||||
}
|
||||
else if (program.IsKids) {
|
||||
html += '<paper-fab class="listAvatar" style="background:#2196F3;" icon="person" item-icon></paper-fab>';
|
||||
html += '<paper-fab mini style="background:#2196F3;" icon="person" item-icon></paper-fab>';
|
||||
}
|
||||
else if (program.IsSports) {
|
||||
html += '<paper-fab class="listAvatar" style="background:#8BC34A;" icon="person" item-icon></paper-fab>';
|
||||
html += '<paper-fab mini style="background:#8BC34A;" icon="person" item-icon></paper-fab>';
|
||||
}
|
||||
else if (program.IsMovie) {
|
||||
html += '<paper-fab class="listAvatar" icon="movie" item-icon></paper-fab>';
|
||||
html += '<paper-fab mini icon="movie" item-icon></paper-fab>';
|
||||
}
|
||||
else if (program.IsNews) {
|
||||
html += '<paper-fab class="listAvatar" style="background:#673AB7;" icon="new-releases" item-icon></paper-fab>';
|
||||
html += '<paper-fab mini style="background:#673AB7;" icon="new-releases" item-icon></paper-fab>';
|
||||
}
|
||||
else {
|
||||
html += '<paper-fab class="listAvatar blue" icon="live-tv" item-icon></paper-fab>';
|
||||
html += '<paper-fab mini class="blue" icon="live-tv" item-icon></paper-fab>';
|
||||
}
|
||||
|
||||
html += '<paper-item-body two-line>';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
html += '<paper-icon-item>';
|
||||
|
||||
html += '<paper-fab class="listAvatar blue" icon="live-tv" item-icon></paper-fab>';
|
||||
html += '<paper-fab mini class="blue" icon="live-tv" item-icon></paper-fab>';
|
||||
|
||||
html += '<paper-item-body two-line>';
|
||||
html += '<a href="livetvrecordinglist.html?groupid=' + group.Id + '" class="clearLink">';
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
|
||||
html += '<paper-icon-item>';
|
||||
|
||||
html += '<paper-fab class="listAvatar" icon="live-tv" item-icon></paper-fab>';
|
||||
html += '<paper-fab mini icon="live-tv" item-icon></paper-fab>';
|
||||
|
||||
html += '<paper-item-body three-line>';
|
||||
html += '<a class="clearLink" href="livetvseriestimer.html?id=' + timer.Id + '">';
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
var tuner = tuners[i];
|
||||
html += '<paper-icon-item>';
|
||||
|
||||
html += '<paper-fab class="listAvatar" style="background:#52B54B;" icon="live-tv" item-icon></paper-fab>';
|
||||
html += '<paper-fab mini style="background:#52B54B;" icon="live-tv" item-icon></paper-fab>';
|
||||
|
||||
html += '<paper-item-body two-line>';
|
||||
|
||||
|
@ -196,7 +196,7 @@
|
|||
|
||||
html += '<paper-icon-item>';
|
||||
|
||||
html += '<paper-fab class="listAvatar" style="background:#52B54B;" icon="live-tv" item-icon></paper-fab>';
|
||||
html += '<paper-fab mini style="background:#52B54B;" icon="live-tv" item-icon></paper-fab>';
|
||||
|
||||
html += '<paper-item-body two-line>';
|
||||
html += '<a class="clearLink" href="' + href + '">';
|
||||
|
@ -300,7 +300,7 @@
|
|||
var provider = providers[i];
|
||||
html += '<paper-icon-item>';
|
||||
|
||||
html += '<paper-fab class="listAvatar" style="background:#52B54B;" icon="dvr" item-icon></paper-fab>';
|
||||
html += '<paper-fab mini style="background:#52B54B;" icon="dvr" item-icon></paper-fab>';
|
||||
|
||||
html += '<paper-item-body two-line>';
|
||||
|
||||
|
|
|
@ -95,7 +95,7 @@
|
|||
|
||||
currentHtml += '<paper-icon-item class="viewItem" data-viewid="' + view.Id + '">';
|
||||
|
||||
currentHtml += '<paper-fab class="listAvatar" style="background-color:#444;" icon="folder-open" item-icon></paper-fab>';
|
||||
currentHtml += '<paper-fab mini style="background-color:#444;" icon="folder-open" item-icon></paper-fab>';
|
||||
|
||||
currentHtml += '<paper-item-body>';
|
||||
|
||||
|
|
|
@ -130,9 +130,9 @@
|
|||
itemHtml += '<paper-icon-item>';
|
||||
|
||||
if (notification.Level == "Error") {
|
||||
itemHtml += '<paper-fab class="listAvatar" style="background:#cc3333;" icon="error" item-icon></paper-fab>';
|
||||
itemHtml += '<paper-fab mini class="" style="background:#cc3333;" icon="error" item-icon></paper-fab>';
|
||||
} else {
|
||||
itemHtml += '<paper-fab class="listAvatar blue" icon="dvr" item-icon></paper-fab>';
|
||||
itemHtml += '<paper-fabmini class="blue" icon="dvr" item-icon></paper-fab>';
|
||||
}
|
||||
|
||||
itemHtml += '<paper-item-body three-line>';
|
||||
|
|
|
@ -32,10 +32,10 @@
|
|||
itemHtml += '<paper-icon-item>';
|
||||
|
||||
if (i.Enabled) {
|
||||
itemHtml += '<paper-fab class="listAvatar blue" icon="notifications-active" item-icon></paper-fab>';
|
||||
itemHtml += '<paper-fab mini class="blue" icon="notifications-active" item-icon></paper-fab>';
|
||||
}
|
||||
else {
|
||||
itemHtml += '<paper-fab class="listAvatar" style="background-color:#999;" icon="notifications-off" item-icon></paper-fab>';
|
||||
itemHtml += '<paper-fab mini style="background-color:#999;" icon="notifications-off" item-icon></paper-fab>';
|
||||
}
|
||||
|
||||
itemHtml += '<paper-item-body two-line>';
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
html += '<paper-icon-item class="scheduledTaskPaperIconItem" data-status="' + task.State + '">';
|
||||
|
||||
html += "<a item-icon class='clearLink' href='scheduledtask.html?id=" + task.Id + "'>";
|
||||
html += '<paper-fab class="listAvatar" icon="schedule"></paper-fab>';
|
||||
html += '<paper-fab mini icon="schedule"></paper-fab>';
|
||||
html += "</a>";
|
||||
|
||||
html += '<paper-item-body two-line>';
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
|
||||
html += '<paper-icon-item class="serverItem" data-id="' + server.Id + '">';
|
||||
|
||||
html += '<paper-fab class="listAvatar blue lnkServer" icon="wifi" item-icon></paper-fab>';
|
||||
html += '<paper-fab mini class="blue lnkServer" icon="wifi" item-icon></paper-fab>';
|
||||
|
||||
html += '<paper-item-body class="lnkServer" two-line>';
|
||||
html += '<a class="clearLink" href="#">';
|
||||
|
@ -259,7 +259,7 @@
|
|||
|
||||
html += '<paper-icon-item class="inviteItem" data-id="' + invite.Id + '">';
|
||||
|
||||
html += '<paper-fab class="listAvatar blue lnkServer" icon="wifi" item-icon></paper-fab>';
|
||||
html += '<paper-fab mini class="blue lnkServer" icon="wifi" item-icon></paper-fab>';
|
||||
|
||||
html += '<paper-item-body two-line>';
|
||||
|
||||
|
|
|
@ -61,10 +61,10 @@
|
|||
}
|
||||
|
||||
if (imgUrl) {
|
||||
html += '<paper-fab class="listAvatar blue" style="background-image:url(\'' + imgUrl + '\');background-repeat:no-repeat;background-position:center center;background-size: cover;" item-icon></paper-fab>';
|
||||
html += '<paper-fab mini class="blue" style="background-image:url(\'' + imgUrl + '\');background-repeat:no-repeat;background-position:center center;background-size: cover;" item-icon></paper-fab>';
|
||||
}
|
||||
else {
|
||||
html += '<paper-fab class="listAvatar blue" icon="sync" item-icon></paper-fab>';
|
||||
html += '<paper-fab mini class="blue" icon="sync" item-icon></paper-fab>';
|
||||
}
|
||||
|
||||
html += '<paper-item-body three-line>';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue