diff --git a/dashboard-ui/bower_components/emby-webcomponents/.bower.json b/dashboard-ui/bower_components/emby-webcomponents/.bower.json index a5987ee8b5..0bc8e65a45 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.0.32", - "_release": "1.0.32", + "version": "1.0.35", + "_release": "1.0.35", "_resolution": { "type": "version", - "tag": "1.0.32", - "commit": "4f59bdceba30ab8a9e1bf4c7d6bacd659d27b9bb" + "tag": "1.0.35", + "commit": "3fbcae2c9495ad83a36aa1bcf34f985f979923e7" }, "_source": "git://github.com/MediaBrowser/emby-webcomponents.git", "_target": "~1.0.0", diff --git a/dashboard-ui/bower_components/emby-webcomponents/paperdialoghelper/paperdialoghelper.css b/dashboard-ui/bower_components/emby-webcomponents/paperdialoghelper/paperdialoghelper.css index cf54eccfd7..1cb020007b 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/paperdialoghelper/paperdialoghelper.css +++ b/dashboard-ui/bower_components/emby-webcomponents/paperdialoghelper/paperdialoghelper.css @@ -1,17 +1,19 @@ .paperDialog { margin: 0; - top: 0; - left: 0; - right: 0; - bottom: 0; - position: fixed; - max-width: none !important; - max-height: none !important; - display: flex; - align-items: center; - justify-content: center; } + .paperDialog.fixedSize { + position: fixed !important; + top: 0 !important; + bottom: 0 !important; + left: 0 !important; + right: 0 !important; + margin: 0 !important; + border-radius: 0 !important; + max-height: none !important; + max-width: none !important; + } + .paperDialog.scrollY { overflow-y: auto; -webkit-overflow-scrolling: touch; @@ -25,4 +27,36 @@ .paperDialog.hiddenScroll { -ms-overflow-style: none; overflow: -moz-scrollbars-none; - } \ No newline at end of file + } + +@media all and (min-width: 1280px) and (min-height: 720px) { + + .paperDialog.medium { + top: 10% !important; + bottom: 10% !important; + left: 10% !important; + right: 10% !important; + } + + .paperDialog.small { + top: 10% !important; + bottom: 10% !important; + left: 20% !important; + right: 20% !important; + } +} + +@media all and (min-width: 1280px) and (min-height: 720px) { + + .paperDialog.fullscreen-border { + top: 5% !important; + bottom: 5% !important; + left: 5% !important; + right: 5% !important; + } +} + +.noScroll { + overflow-x: hidden !important; + overflow-y: hidden !important; +} \ No newline at end of file diff --git a/dashboard-ui/bower_components/emby-webcomponents/paperdialoghelper/paperdialoghelper.js b/dashboard-ui/bower_components/emby-webcomponents/paperdialoghelper/paperdialoghelper.js index 2c064ead86..01c6dbdd86 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/paperdialoghelper/paperdialoghelper.js +++ b/dashboard-ui/bower_components/emby-webcomponents/paperdialoghelper/paperdialoghelper.js @@ -5,6 +5,7 @@ var self = this; self.originalUrl = window.location.href; var activeElement = document.activeElement; + var removeScrollLockOnClose = false; function onHashChange(e) { @@ -22,9 +23,8 @@ function onDialogClosed() { - if (lockDocumentScroll !== false) { - // TODO - //Dashboard.onPopupClose(); + if (removeScrollLockOnClose) { + document.body.classList.remove('noScroll'); } window.removeEventListener('popstate', onHashChange); @@ -55,9 +55,9 @@ dlg.addEventListener('iron-overlay-closed', onDialogClosed); dlg.open(); - if (lockDocumentScroll !== false) { - // TODO - //Dashboard.onPopupOpen(); + if (lockDocumentScroll !== false && !document.body.classList.contains('noScroll')) { + document.body.classList.add('noScroll'); + removeScrollLockOnClose = true; } historyManager.pushState({ dialogId: hash }, "Dialog", hash); @@ -135,7 +135,14 @@ dlg.setAttribute('data-removeonclose', 'true'); } - dlg.addEventListener('iron-overlay-opened', onDialogOpened); + if (options.size) { + dlg.classList.add('fixedSize'); + dlg.classList.add(options.size); + } + + if (options.autoFocus !== false) { + dlg.addEventListener('iron-overlay-opened', onDialogOpened); + } return dlg; } diff --git a/dashboard-ui/bower_components/iron-behaviors/.bower.json b/dashboard-ui/bower_components/iron-behaviors/.bower.json index db08f2170c..17f68b3351 100644 --- a/dashboard-ui/bower_components/iron-behaviors/.bower.json +++ b/dashboard-ui/bower_components/iron-behaviors/.bower.json @@ -29,14 +29,14 @@ "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" }, "ignore": [], - "homepage": "https://github.com/PolymerElements/iron-behaviors", + "homepage": "https://github.com/polymerelements/iron-behaviors", "_release": "1.0.12", "_resolution": { "type": "version", "tag": "v1.0.12", "commit": "657f526a2382a659cdf4e13be87ecc89261588a3" }, - "_source": "git://github.com/PolymerElements/iron-behaviors.git", + "_source": "git://github.com/polymerelements/iron-behaviors.git", "_target": "^1.0.0", - "_originalSource": "PolymerElements/iron-behaviors" + "_originalSource": "polymerelements/iron-behaviors" } \ No newline at end of file diff --git a/dashboard-ui/components/collectioneditor/collectioneditor.js b/dashboard-ui/components/collectioneditor/collectioneditor.js index 949a7c7c7e..bba463a18e 100644 --- a/dashboard-ui/components/collectioneditor/collectioneditor.js +++ b/dashboard-ui/components/collectioneditor/collectioneditor.js @@ -193,11 +193,14 @@ size: 'small' }); + dlg.classList.add('ui-body-b'); + dlg.classList.add('background-theme-b'); + var html = ''; var title = items.length ? Globalize.translate('HeaderAddToCollection') : Globalize.translate('HeaderNewCollection'); html += '