diff --git a/dashboard-ui/components/imagedownloader/imagedownloader.js b/dashboard-ui/components/imagedownloader/imagedownloader.js index e94afbbdd5..88fc60b92e 100644 --- a/dashboard-ui/components/imagedownloader/imagedownloader.js +++ b/dashboard-ui/components/imagedownloader/imagedownloader.js @@ -1,4 +1,4 @@ -define(['dialogHelper', 'jQuery', 'emby-checkbox', 'paper-fab', 'paper-icon-button-light'], function (dialogHelper, $) { +define(['dialogHelper', 'jQuery', 'emby-checkbox', 'emby-button', 'paper-icon-button-light'], function (dialogHelper, $) { var currentItemId; var currentItemType; @@ -284,7 +284,7 @@ var html = ''; html += '

'; - html += ''; + html += ''; html += '
' + Globalize.translate('HeaderSearch') + '
'; html += '

'; diff --git a/dashboard-ui/components/imageeditor/imageeditor.js b/dashboard-ui/components/imageeditor/imageeditor.js index 6b429f87b3..ffe8bb0ea6 100644 --- a/dashboard-ui/components/imageeditor/imageeditor.js +++ b/dashboard-ui/components/imageeditor/imageeditor.js @@ -1,4 +1,4 @@ -define(['dialogHelper', 'css!css/metadataeditor.css', 'emby-button', 'paper-fab', 'paper-icon-button-light'], function (dialogHelper) { +define(['dialogHelper', 'css!css/metadataeditor.css', 'emby-button', 'paper-icon-button-light'], function (dialogHelper) { var currentItem; var currentDeferred; diff --git a/dashboard-ui/components/imageeditor/imageeditor.template.html b/dashboard-ui/components/imageeditor/imageeditor.template.html index c116031d2f..4634c4471f 100644 --- a/dashboard-ui/components/imageeditor/imageeditor.template.html +++ b/dashboard-ui/components/imageeditor/imageeditor.template.html @@ -1,8 +1,12 @@ 
-
-

${HeaderImages}

- - +
+

${HeaderImages}

+ +
@@ -10,10 +14,14 @@
-
-

${HeaderBackdrops}

- - +
+

${HeaderBackdrops}

+ +
@@ -21,10 +29,14 @@
-
-

${Screenshots}

- - +
+

${Screenshots}

+ +
diff --git a/dashboard-ui/components/navdrawer/navdrawer.css b/dashboard-ui/components/navdrawer/navdrawer.css index 7f72f28f5f..cfff5a2d8e 100644 --- a/dashboard-ui/components/navdrawer/navdrawer.css +++ b/dashboard-ui/components/navdrawer/navdrawer.css @@ -7,7 +7,7 @@ will-change: transform; contain: layout style; display: flex; - transition: transform ease-out 60ms, left ease-out 300ms; + transition: transform ease-out 60ms, left ease-out 260ms; z-index: 1099; } @@ -17,8 +17,8 @@ .touch-menu-la.transition { /*transition: transform 0.3s ease-out;*/ - transition: -webkit-transform ease-out 280ms, left ease-out 300ms; - transition: transform ease-out 280ms, left ease-out 300ms; + transition: -webkit-transform ease-out 260ms, left ease-out 260ms; + transition: transform ease-out 260ms, left ease-out 260ms; /*transition: -webkit-transform ease-in-out 0.3s, width ease-in-out 0.3s, visibility 0.3s; transition: transform ease-in-out 0.3s, width ease-in-out 0.3s, visibility 0.3s;*/ } diff --git a/dashboard-ui/components/navdrawer/navdrawer.js b/dashboard-ui/components/navdrawer/navdrawer.js index 95e9460b39..988f25b5a8 100644 --- a/dashboard-ui/components/navdrawer/navdrawer.js +++ b/dashboard-ui/components/navdrawer/navdrawer.js @@ -1,4 +1,4 @@ -define(['hammer', 'css!./navdrawer'], function (Hammer) { +define(['browser', 'hammer', 'css!./navdrawer'], function (browser, Hammer) { return function (options) { @@ -39,14 +39,6 @@ options.target.style.width = options.width + 'px'; options.target.style.left = -options.width + 'px'; - if (!options.disableEdgeSwipe) { - //var handle = document.createElement('div'); - //handle.className = "tmla-handle"; - //handle.style.width = options.handleSize + 'px'; - //handle.style.right = -options.handleSize + 'px'; - //options.target.appendChild(handle); - } - if (!options.disableMask) { mask = document.createElement('div'); mask.className = 'tmla-mask'; @@ -104,17 +96,23 @@ var edgeHammer = new Hammer(options.edgeSwipeElement, null); var isPeeking = false; - edgeHammer.on('panstart', function (ev) { - - if (ev.srcEvent.clientX <= options.handleSize && ev.deltaX > 0) { - isPeeking = true; - onPanStart(ev); - } - }); - edgeHammer.on('panmove', function (ev) { + edgeHammer.on('panstart panmove', function (ev) { if (isPeeking) { onPanMove(ev); + } else { + var srcEvent = ev.srcEvent; + var clientX = srcEvent.clientX; + if (!clientX) { + var touches = srcEvent.touches; + if (touches && touches.length) { + clientX = touches[0].clientX; + } + } + if (clientX <= options.handleSize) { + isPeeking = true; + onPanStart(ev); + } } }); edgeHammer.on('panend pancancel', function (ev) { @@ -263,6 +261,11 @@ options = Object.assign(defaults, options || {}); + // Not ready yet + if (browser.edge) { + options.disableEdgeSwipe = true; + } + menuHammer = Hammer(options.target, null); self.initElements(); diff --git a/dashboard-ui/css/card.css b/dashboard-ui/css/card.css index 62ae387756..bc0cd8a9b2 100644 --- a/dashboard-ui/css/card.css +++ b/dashboard-ui/css/card.css @@ -90,7 +90,7 @@ filter: grayscale(100%); } -.bottomPaddedCard .cardBox { +.bottomPaddedCard .cardBox:not(.visualCardBox) { margin-bottom: 24px; } @@ -107,7 +107,6 @@ -webkit-box-shadow: 0 2px 4px rgba(0,0,0,0.1); box-shadow: 0 2px 4px rgba(0,0,0,0.1); background: #fff; - margin: 7px; } .ui-body-b .visualCardBox { @@ -115,7 +114,7 @@ } .defaultBackground .cardImage, .ui-body-b .visualCardBox { - background-color: #262626; + background-color: #2a2a2a; } .cardScalable {