diff --git a/dashboard-ui/bower_components/emby-webcomponents/.bower.json b/dashboard-ui/bower_components/emby-webcomponents/.bower.json index e19ea6b647..e8c08d4958 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/.bower.json +++ b/dashboard-ui/bower_components/emby-webcomponents/.bower.json @@ -15,12 +15,12 @@ }, "devDependencies": {}, "ignore": [], - "version": "1.4.80", - "_release": "1.4.80", + "version": "1.4.81", + "_release": "1.4.81", "_resolution": { "type": "version", - "tag": "1.4.80", - "commit": "a959ba5d3e78c15e700002a399450365bc6b9328" + "tag": "1.4.81", + "commit": "77ba771ece78a8beb9262d7ac296175df6c052b2" }, "_source": "https://github.com/MediaBrowser/emby-webcomponents.git", "_target": "^1.2.0", diff --git a/dashboard-ui/bower_components/emby-webcomponents/listview/listview.css b/dashboard-ui/bower_components/emby-webcomponents/listview/listview.css index 3ba903b9b3..aa01b90e23 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/listview/listview.css +++ b/dashboard-ui/bower_components/emby-webcomponents/listview/listview.css @@ -12,26 +12,31 @@ button.listItem { } .listItem { + margin: 0; display: block; align-items: center; text-align: left; - padding: 0 1em !important; + padding: .25em .5em .25em 1em !important; line-height: 170%; border-bottom: 1px solid #2a2a2a; } - .listItem.largeImage { - padding: 1em 0 1em 1em; - } +div.listItem { + cursor: pointer; +} - .listItem > *:not(.listItemBody) { - flex-shrink: 0; - } +.listItem.largeImage { + padding: 1em 0 1em 1em; +} - .listItem > * { - display: inline-block; - vertical-align: middle; - } +.listItem > *:not(.listItemBody) { + flex-shrink: 0; +} + +.listItem > * { + display: inline-block; + vertical-align: middle; +} .listItemBody { flex-grow: 1; @@ -56,9 +61,8 @@ button.listItem { padding-bottom: 0; } - .listItemBody h3 { + .listItemBody h2, .listItemBody h3 { margin: 0; - font-weight: normal; padding: 0; overflow: hidden; text-overflow: ellipsis; @@ -80,6 +84,8 @@ button.listItem { .listItemImage { width: 7.4vh; height: 7.4vh; + min-width: 40px; + min-height: 40px; background-repeat: no-repeat; background-size: contain; flex-shrink: 0; @@ -140,8 +146,20 @@ button.listItem { align-items: center; } - .listItemMediaInfo > * { - display: inline-block; +.layout-tv .listItemMediaInfo { + margin: .5em 0; +} + +.listItemMediaInfo > * { + display: inline-block; +} + +.listGroupHeader { + margin: 2em 0 1em; +} + + .listGroupHeader.first { + margin-top: 0; } @supports (display: flex) { @@ -150,3 +168,10 @@ button.listItem { display: flex; } } + +@media all and (max-width: 800px) { + + .listItem .endsAt, .listItem .criticRating { + display: none !important; + } +} diff --git a/dashboard-ui/bower_components/emby-webcomponents/listview/listview.js b/dashboard-ui/bower_components/emby-webcomponents/listview/listview.js index f14518e495..e233db60a0 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/listview/listview.js +++ b/dashboard-ui/bower_components/emby-webcomponents/listview/listview.js @@ -1,10 +1,10 @@ -define(['itemHelper', 'mediaInfo', 'indicators', 'connectionManager', 'layoutManager', 'userdataButtons', 'css!./listview'], function (itemHelper, mediaInfo, indicators, connectionManager, layoutManager, userdataButtons) { +define(['itemHelper', 'mediaInfo', 'indicators', 'connectionManager', 'layoutManager', 'globalize', 'userdataButtons', 'css!./listview'], function (itemHelper, mediaInfo, indicators, connectionManager, layoutManager, globalize, userdataButtons) { function getIndex(item, options) { if (options.index == 'disc') { - return item.ParentIndexNumber == null ? '' : Globalize.translate('sharedcomponents#ValueDiscNumber', item.ParentIndexNumber); + return item.ParentIndexNumber == null ? '' : globalize.translate('sharedcomponents#ValueDiscNumber', item.ParentIndexNumber); } var sortBy = (options.sortBy || '').toLowerCase(); @@ -122,32 +122,36 @@ define(['itemHelper', 'mediaInfo', 'indicators', 'connectionManager', 'layoutMan var clickEntireItem = layoutManager.tv ? true : false; var outerTagName = clickEntireItem ? 'button' : 'div'; - return items.map(function (item) { + var outerHtml = ''; + + outerHtml += items.map(function (item) { var html = ''; - //if (options.showIndex !== false) { + if (options.showIndex) { - // var itemGroupTitle = LibraryBrowser.getListViewIndex(item, options); + var itemGroupTitle = getIndex(item, options); - // if (itemGroupTitle != groupTitle) { + if (itemGroupTitle != groupTitle) { - // outerHtml += ''; + if (html) { + html += ''; + } - // if (index == 0) { - // html += '
+ iron-location won't add extraneous entries to the browser's history + when changes come in quick succession. +
++ A new history entry will only be added if iron-location stays in + the same state longer than dwellTime. +
+