1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update components

This commit is contained in:
Luke Pulverenti 2016-05-10 14:13:26 -04:00
parent 4aa1243bef
commit 2c4c735acf
8 changed files with 21 additions and 40 deletions

View file

@ -16,12 +16,12 @@
},
"devDependencies": {},
"ignore": [],
"version": "1.2.70",
"_release": "1.2.70",
"version": "1.2.72",
"_release": "1.2.72",
"_resolution": {
"type": "version",
"tag": "1.2.70",
"commit": "da1751d5ebd43e4681ef9a0834e08d094505e725"
"tag": "1.2.72",
"commit": "bd5ee371f1d5340371aedff26b6ad8b7912c66f3"
},
"_source": "https://github.com/MediaBrowser/emby-webcomponents.git",
"_target": "^1.2.0",

View file

@ -3,28 +3,7 @@
justify-content: center;
padding: 0;
border: none;
border-radius: 2px;
box-shadow: 0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.2),0 1px 5px 0 rgba(0,0,0,.12);
/*opacity: 1;
-webkit-transform: scale(1);
transform: scale(1);
z-index: 999;
transform-origin: 100% 0;
display: block;
background: #fff;
margin: 0;
padding: 0;
border: none;
border-radius: 2px;
position: absolute;
top: 0;
left: 0;
overflow: hidden;
box-shadow: 0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.2),0 1px 5px 0 rgba(0,0,0,.12);
will-change: transform;
transition: transform .3s cubic-bezier(.4,0,.2,1),opacity .2s cubic-bezier(.4,0,.2,1);
transition: transform .3s cubic-bezier(.4,0,.2,1),opacity .2s cubic-bezier(.4,0,.2,1),-webkit-transform .3s cubic-bezier(.4,0,.2,1);
z-index: -1;*/
max-height: 84%;
}

View file

@ -1,6 +1,6 @@
.dialog {
margin: 0;
border-radius: 2px;
border-radius: 1px;
z-index: 999999 !important;
position: fixed;
margin: 24px 40px;

View file

@ -93,17 +93,14 @@
if (center) {
centerDialog(dlg);
}
animateDialogOpen(dlg);
if (dlg.getAttribute('data-autofocus') == 'true') {
autoFocus(dlg);
}
if (dlg.getAttribute('data-lockscroll') == 'true' && !document.body.classList.contains('noScroll')) {
document.body.classList.add('noScroll');
removeScrollLockOnClose = true;
}
animateDialogOpen(dlg);
if (isHistoryEnabled(dlg)) {
historyManager.pushState({ dialogId: hash }, "Dialog", hash);
@ -149,8 +146,9 @@
// The dialog may have just been created and webComponents may not have completed initialiazation yet.
// Without this, seeing some script errors in Firefox
// Also for some reason it won't auto-focus without a delay here, still investigating that
var delay = browser.animate ? 200 : 500;
var delay = browser.animate ? 0 : 300;
setTimeout(function () {
focusManager.autoFocus(dlg);
@ -263,6 +261,9 @@
function animateDialogOpen(dlg) {
var onAnimationFinish = function () {
if (dlg.getAttribute('data-autofocus') == 'true') {
autoFocus(dlg);
}
};
if (!dlg.animationConfig || !dlg.animate) {

View file

@ -230,6 +230,7 @@ define(['dialogHelper', 'inputManager', 'connectionManager', 'layoutManager', 'f
preloadImages: false,
// Enable lazy loading
lazyLoading: true,
lazyLoadingInPrevNext: true,
autoplayDisableOnInteraction: false,
initialSlide: options.startIndex || 0
});