mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update tabs
This commit is contained in:
parent
c801927576
commit
b38145c4d3
5 changed files with 21 additions and 17 deletions
|
@ -29,14 +29,14 @@
|
||||||
"web-component-tester": "*",
|
"web-component-tester": "*",
|
||||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/PolymerElements/iron-a11y-keys-behavior",
|
"homepage": "https://github.com/polymerelements/iron-a11y-keys-behavior",
|
||||||
"_release": "1.0.5",
|
"_release": "1.0.5",
|
||||||
"_resolution": {
|
"_resolution": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"tag": "v1.0.5",
|
"tag": "v1.0.5",
|
||||||
"commit": "cf833eab5c55a26c5aa92e56d3fcb079120ce66a"
|
"commit": "cf833eab5c55a26c5aa92e56d3fcb079120ce66a"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/PolymerElements/iron-a11y-keys-behavior.git",
|
"_source": "git://github.com/polymerelements/iron-a11y-keys-behavior.git",
|
||||||
"_target": "^1.0.0",
|
"_target": "^1.0.0",
|
||||||
"_originalSource": "PolymerElements/iron-a11y-keys-behavior"
|
"_originalSource": "polymerelements/iron-a11y-keys-behavior"
|
||||||
}
|
}
|
|
@ -27,14 +27,14 @@
|
||||||
"web-component-tester": "*",
|
"web-component-tester": "*",
|
||||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/PolymerElements/iron-behaviors",
|
"homepage": "https://github.com/polymerelements/iron-behaviors",
|
||||||
"_release": "1.0.8",
|
"_release": "1.0.8",
|
||||||
"_resolution": {
|
"_resolution": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"tag": "v1.0.8",
|
"tag": "v1.0.8",
|
||||||
"commit": "663ad706b43989f4961d945b8116cf4db346532f"
|
"commit": "663ad706b43989f4961d945b8116cf4db346532f"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/PolymerElements/iron-behaviors.git",
|
"_source": "git://github.com/polymerelements/iron-behaviors.git",
|
||||||
"_target": "^1.0.0",
|
"_target": "^1.0.0",
|
||||||
"_originalSource": "PolymerElements/iron-behaviors"
|
"_originalSource": "polymerelements/iron-behaviors"
|
||||||
}
|
}
|
|
@ -23,14 +23,14 @@
|
||||||
"paper-styles": "polymerelements/paper-styles#^1.0.0",
|
"paper-styles": "polymerelements/paper-styles#^1.0.0",
|
||||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/PolymerElements/iron-flex-layout",
|
"homepage": "https://github.com/polymerelements/iron-flex-layout",
|
||||||
"_release": "1.0.3",
|
"_release": "1.0.3",
|
||||||
"_resolution": {
|
"_resolution": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"tag": "v1.0.3",
|
"tag": "v1.0.3",
|
||||||
"commit": "e6c2cfec18354973ac03e70dcd8afcc3c72d09b9"
|
"commit": "e6c2cfec18354973ac03e70dcd8afcc3c72d09b9"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/PolymerElements/iron-flex-layout.git",
|
"_source": "git://github.com/polymerelements/iron-flex-layout.git",
|
||||||
"_target": "^1.0.0",
|
"_target": "^1.0.0",
|
||||||
"_originalSource": "PolymerElements/iron-flex-layout"
|
"_originalSource": "polymerelements/iron-flex-layout"
|
||||||
}
|
}
|
|
@ -26,14 +26,14 @@
|
||||||
"web-component-tester": "*",
|
"web-component-tester": "*",
|
||||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/polymerelements/paper-ripple",
|
"homepage": "https://github.com/PolymerElements/paper-ripple",
|
||||||
"_release": "1.0.1",
|
"_release": "1.0.1",
|
||||||
"_resolution": {
|
"_resolution": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"tag": "v1.0.1",
|
"tag": "v1.0.1",
|
||||||
"commit": "af19d904802437c305390bb03415c11661de3d0a"
|
"commit": "af19d904802437c305390bb03415c11661de3d0a"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/polymerelements/paper-ripple.git",
|
"_source": "git://github.com/PolymerElements/paper-ripple.git",
|
||||||
"_target": "^1.0.0",
|
"_target": "^1.0.0",
|
||||||
"_originalSource": "polymerelements/paper-ripple"
|
"_originalSource": "PolymerElements/paper-ripple"
|
||||||
}
|
}
|
|
@ -122,9 +122,13 @@
|
||||||
elem.classList.add('hasrefreshtime');
|
elem.classList.add('hasrefreshtime');
|
||||||
},
|
},
|
||||||
|
|
||||||
|
animatePaperTabs: function () {
|
||||||
|
return !$.browser.safari;
|
||||||
|
},
|
||||||
|
|
||||||
configureSwipeTabs: function (ownerpage, tabs, pages) {
|
configureSwipeTabs: function (ownerpage, tabs, pages) {
|
||||||
|
|
||||||
if (!$.browser.safari) {
|
if (LibraryBrowser.animatePaperTabs()) {
|
||||||
// Safari doesn't handle the horizontal swiping very well
|
// Safari doesn't handle the horizontal swiping very well
|
||||||
pages.entryAnimation = 'slide-from-right-animation';
|
pages.entryAnimation = 'slide-from-right-animation';
|
||||||
pages.exitAnimation = 'slide-left-animation';
|
pages.exitAnimation = 'slide-left-animation';
|
||||||
|
@ -211,10 +215,9 @@
|
||||||
|
|
||||||
if (LibraryBrowser.enableFullPaperTabs()) {
|
if (LibraryBrowser.enableFullPaperTabs()) {
|
||||||
|
|
||||||
if ($.browser.safari) {
|
tabs.noSlide = true;
|
||||||
|
|
||||||
// Not very iOS-like I suppose
|
if ($.browser.safari) {
|
||||||
//tabs.noSlide = true;
|
|
||||||
tabs.noBar = true;
|
tabs.noBar = true;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -245,7 +248,8 @@
|
||||||
// When transition animations are used, add a content loading delay to allow the animations to finish
|
// When transition animations are used, add a content loading delay to allow the animations to finish
|
||||||
// Otherwise with both operations happening at the same time, it can cause the animation to not run at full speed.
|
// Otherwise with both operations happening at the same time, it can cause the animation to not run at full speed.
|
||||||
var pgs = this;
|
var pgs = this;
|
||||||
var delay = pgs.entryAnimation ? 500 : 0;
|
var delay = LibraryBrowser.animatePaperTabs() ? 500 : 0;
|
||||||
|
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
|
|
||||||
$(pgs).trigger('tabchange');
|
$(pgs).trigger('tabchange');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue