diff --git a/dashboard-ui/bower_components/emby-webcomponents/.bower.json b/dashboard-ui/bower_components/emby-webcomponents/.bower.json index 5c5bcc32b7..bacc19031d 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/.bower.json +++ b/dashboard-ui/bower_components/emby-webcomponents/.bower.json @@ -14,12 +14,12 @@ }, "devDependencies": {}, "ignore": [], - "version": "1.4.363", - "_release": "1.4.363", + "version": "1.4.365", + "_release": "1.4.365", "_resolution": { "type": "version", - "tag": "1.4.363", - "commit": "391923397ea7ea23890ced20153fc896e8892f31" + "tag": "1.4.365", + "commit": "a946b2cfd0bc2fd99121a18cc236f1ce02ad5cf8" }, "_source": "https://github.com/MediaBrowser/emby-webcomponents.git", "_target": "^1.2.1", diff --git a/dashboard-ui/bower_components/emby-webcomponents/backdrop/backdrop.js b/dashboard-ui/bower_components/emby-webcomponents/backdrop/backdrop.js index 4b02e04d96..91f6addb95 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/backdrop/backdrop.js +++ b/dashboard-ui/bower_components/emby-webcomponents/backdrop/backdrop.js @@ -252,21 +252,20 @@ var rotationInterval; var currentRotatingImages = []; var currentRotationIndex = -1; - function setBackdrops(items, imageSetId) { + function setBackdrops(items, enableRotation) { var images = getImageUrls(items); - imageSetId = imageSetId || new Date().getTime(); if (images.length) { - startRotation(images, imageSetId); + startRotation(images, enableRotation); } else { clearBackdrop(); } } - function startRotation(images) { + function startRotation(images, enableImageRotation) { if (arraysEqual(images, currentRotatingImages)) { return; @@ -277,7 +276,7 @@ currentRotatingImages = images; currentRotationIndex = -1; - if (images.length > 1 && enableRotation()) { + if (images.length > 1 && enableRotation() && enableImageRotation !== false) { rotationInterval = setInterval(onRotationInterval, 20000); } onRotationInterval(); diff --git a/dashboard-ui/bower_components/emby-webcomponents/emby-button/emby-button.css b/dashboard-ui/bower_components/emby-webcomponents/emby-button/emby-button.css index 1d61125787..fcdf32f485 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/emby-button/emby-button.css +++ b/dashboard-ui/bower_components/emby-webcomponents/emby-button/emby-button.css @@ -50,13 +50,13 @@ .fab { display: inline-flex; border-radius: 50%; - background-color: #444; + background-color: rgb(170,170, 170); padding: .6em; box-sizing: border-box; align-items: center; justify-content: center; text-align: center; - color: #fff; + color: #222; margin: 0; } diff --git a/dashboard-ui/bower_components/emby-webcomponents/thememediaplayer.js b/dashboard-ui/bower_components/emby-webcomponents/thememediaplayer.js index 8252edd4ba..39ae620a0d 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/thememediaplayer.js +++ b/dashboard-ui/bower_components/emby-webcomponents/thememediaplayer.js @@ -14,19 +14,19 @@ define(['playbackManager', 'userSettings'], function (playbackManager, userSetti return; } - if (enabled(items[0].MediaType)) { - currentThemeIds = items.map(function (i) { - return i.Id; - }); + currentThemeIds = items.filter(function (i) { + return enabled(i.MediaType); + }).map(function (i) { + return i.Id; + }); - playbackManager.play({ - items: items, - fullscreen: false, - enableRemotePlayers: false - }).then(function () { - currentOwnerId = ownerId; - }); - } + playbackManager.play({ + items: items, + fullscreen: false, + enableRemotePlayers: false + }).then(function () { + currentOwnerId = ownerId; + }); } else { diff --git a/dashboard-ui/bower_components/emby-webcomponents/userdatabuttons/userdatabuttons.css b/dashboard-ui/bower_components/emby-webcomponents/userdatabuttons/userdatabuttons.css index 2c4f13bab5..0138631734 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/userdatabuttons/userdatabuttons.css +++ b/dashboard-ui/bower_components/emby-webcomponents/userdatabuttons/userdatabuttons.css @@ -1,7 +1,3 @@ -.btnUserData { - color: #aaa; -} - .btnUserDataOn { color: #cc3333 !important; } \ No newline at end of file diff --git a/dashboard-ui/css/librarybrowser.css b/dashboard-ui/css/librarybrowser.css index a11530786b..54b3cec2c2 100644 --- a/dashboard-ui/css/librarybrowser.css +++ b/dashboard-ui/css/librarybrowser.css @@ -196,7 +196,7 @@ .itemTag { display: inline-block; - background-color: #181818; + background-color: #333; border-radius: 4px; padding: 5px 7px; margin: 0 5px 5px 0; @@ -257,9 +257,7 @@ span.itemCommunityRating:not(:empty) + .userDataIcons { } .noBackdrop { - height: 170px; background: #181818; - margin-top: 0 !important; } .withBackdrop + .mainDrawerPanel .noBackdrop { @@ -460,8 +458,6 @@ span.itemCommunityRating:not(:empty) + .userDataIcons { } .mainDetailButtons button, .recordingFields button { - background: rgba(170,170, 170, 1); - color: #222; margin-left: 0; margin-right: .5em; } @@ -538,10 +534,6 @@ span.itemCommunityRating:not(:empty) + .userDataIcons { .editorMenuLink { display: none; } - - .noBackdrop { - height: 80px; - } } .itemMiscInfo { diff --git a/dashboard-ui/scripts/itemdetailpage.js b/dashboard-ui/scripts/itemdetailpage.js index 8779907e6b..a34c42662c 100644 --- a/dashboard-ui/scripts/itemdetailpage.js +++ b/dashboard-ui/scripts/itemdetailpage.js @@ -74,7 +74,8 @@ queueAllFromHere: false, positionTo: button, cancelTimer: false, - record: false + record: false, + editImages: false }; if (appHost.supports('sync')) { @@ -114,10 +115,7 @@ setInitialCollapsibleState(page, item, context, user); renderDetails(page, item, context); - var itemBackdropElement = page.querySelector('#itemBackdrop'); - itemBackdropElement.classList.add('noBackdrop'); - itemBackdropElement.style.backgroundImage = 'none'; - backdrop.setBackdrops([item]); + backdrop.setBackdrops([item], false); LibraryBrowser.renderDetailPageBackdrop(page, item, imageLoader); @@ -433,7 +431,7 @@ page.querySelector('#childrenCollapsible').classList.remove('hide'); renderItemsByName(page, item, user); } - else if (item.IsFolder) { + else if (item.IsFolder || item.Type == 'Episode') { if (item.Type == "BoxSet") { page.querySelector('#childrenCollapsible').classList.add('hide'); @@ -462,14 +460,7 @@ renderMediaSources(page, user, item); } - var chapters = item.Chapters || []; - - if (!chapters.length) { - page.querySelector('#scenesCollapsible').classList.add('hide'); - } else { - page.querySelector('#scenesCollapsible').classList.remove('hide'); - renderScenes(page, item, user, 3); - } + renderScenes(page, item); if (!item.SpecialFeatureCount || item.SpecialFeatureCount == 0 || item.Type == "Series") { page.querySelector('#specialsCollapsible').classList.add('hide'); @@ -602,7 +593,7 @@ var dateAddedElement = page.querySelector('#dateAdded'); - if (!item.IsFolder) { + if (!item.IsFolder && item.Type !== 'Program' && item.Type !== 'TvChannel' && item.Type !== 'Trailer') { dateAddedElement.classList.remove('hide'); dateAddedElement.innerHTML = globalize.translate('DateAddedValue', datetime.toLocaleDateString(datetime.parseISO8601Date(item.DateCreated))); } else { @@ -933,7 +924,6 @@ if (item.Tags && item.Tags.length) { var html = ''; - html += '
' + globalize.translate('HeaderTags') + '
'; for (var i = 0, length = item.Tags.length; i < length; i++) { html += '