mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update now playing bar
This commit is contained in:
parent
9a643e6058
commit
bbf03fdf40
2 changed files with 10 additions and 4 deletions
|
@ -109,6 +109,14 @@
|
||||||
height: 80px;
|
height: 80px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.nowPlayingBar .nowPlayingImage {
|
||||||
|
height: 80px;
|
||||||
|
width: 80px;
|
||||||
|
background-position: center center;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-size: cover;
|
||||||
|
}
|
||||||
|
|
||||||
.nowPlayingBarText {
|
.nowPlayingBarText {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
|
|
|
@ -130,7 +130,7 @@
|
||||||
function bindEvents(elem) {
|
function bindEvents(elem) {
|
||||||
|
|
||||||
currentTimeElement = $('.nowPlayingBarCurrentTime', elem);
|
currentTimeElement = $('.nowPlayingBarCurrentTime', elem);
|
||||||
nowPlayingImageElement = $('.nowPlayingImage', elem);
|
nowPlayingImageElement = elem.querySelector('.nowPlayingImage');
|
||||||
nowPlayingTextElement = $('.nowPlayingBarText', elem);
|
nowPlayingTextElement = $('.nowPlayingBarText', elem);
|
||||||
nowPlayingUserData = $('.nowPlayingBarUserDataButtons', elem);
|
nowPlayingUserData = $('.nowPlayingBarUserDataButtons', elem);
|
||||||
|
|
||||||
|
@ -522,9 +522,7 @@
|
||||||
|
|
||||||
currentImgUrl = url;
|
currentImgUrl = url;
|
||||||
|
|
||||||
var imgHtml = '<img src="' + url + '" />';
|
ImageLoader.lazyImage(nowPlayingImageElement, url);
|
||||||
|
|
||||||
nowPlayingImageElement.html(imgHtml);
|
|
||||||
|
|
||||||
if (nowPlayingItem.Id) {
|
if (nowPlayingItem.Id) {
|
||||||
ApiClient.getItem(Dashboard.getCurrentUserId(), nowPlayingItem.Id).then(function (item) {
|
ApiClient.getItem(Dashboard.getCurrentUserId(), nowPlayingItem.Id).then(function (item) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue