mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update components
This commit is contained in:
parent
5973359f39
commit
4c2a7ed02d
23 changed files with 228 additions and 129 deletions
|
@ -15,12 +15,12 @@
|
|||
},
|
||||
"devDependencies": {},
|
||||
"ignore": [],
|
||||
"version": "1.0.57",
|
||||
"_release": "1.0.57",
|
||||
"version": "1.0.60",
|
||||
"_release": "1.0.60",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "1.0.57",
|
||||
"commit": "65e7ad0446a28e32211da1d73c241cbb6d269f75"
|
||||
"tag": "1.0.60",
|
||||
"commit": "a55e4324dc88ec5cfa9640d1f5d59228a4c7c8c8"
|
||||
},
|
||||
"_source": "git://github.com/MediaBrowser/emby-webcomponents.git",
|
||||
"_target": "~1.0.0",
|
||||
|
|
24
dashboard-ui/bower_components/emby-webcomponents/layoutmanager.js
vendored
Normal file
24
dashboard-ui/bower_components/emby-webcomponents/layoutmanager.js
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
define(['browser'], function (browser) {
|
||||
|
||||
function layoutManager() {
|
||||
|
||||
var self = this;
|
||||
|
||||
self.setFormFactor = function (formFactor) {
|
||||
|
||||
self.mobile = false;
|
||||
self.tv = false;
|
||||
|
||||
self[formFactor] = true;
|
||||
};
|
||||
|
||||
// Take a guess at initial layout. The consuming app can override
|
||||
if (browser.mobile) {
|
||||
self.setFormFactor('mobile');
|
||||
} else {
|
||||
self.setFormFactor('desktop');
|
||||
}
|
||||
};
|
||||
|
||||
return new layoutManager();
|
||||
});
|
|
@ -1,4 +1,4 @@
|
|||
define(['historyManager', 'focusManager', 'performanceManager', 'browser', 'paper-dialog', 'scale-up-animation', 'fade-out-animation', 'fade-in-animation', 'css!./paperdialoghelper.css'], function (historyManager, focusManager, performanceManager, browser) {
|
||||
define(['historyManager', 'focusManager', 'performanceManager', 'browser', 'layoutManager', 'paper-dialog', 'scale-up-animation', 'fade-out-animation', 'fade-in-animation', 'css!./paperdialoghelper.css'], function (historyManager, focusManager, performanceManager, browser, layoutManager) {
|
||||
|
||||
function paperDialogHashHandler(dlg, hash, resolve) {
|
||||
|
||||
|
@ -55,6 +55,13 @@
|
|||
dlg.addEventListener('iron-overlay-closed', onDialogClosed);
|
||||
dlg.open();
|
||||
|
||||
// It's not being positioned properly in firefox
|
||||
if (!dlg.classList.contains('fixedSize')) {
|
||||
setTimeout(function () {
|
||||
dlg.refit();
|
||||
}, 100);
|
||||
}
|
||||
|
||||
if (dlg.getAttribute('data-lockscroll') == 'true' && !document.body.classList.contains('noScroll')) {
|
||||
document.body.classList.add('noScroll');
|
||||
removeScrollLockOnClose = true;
|
||||
|
@ -162,8 +169,10 @@
|
|||
|
||||
dlg.classList.add('scrollY');
|
||||
|
||||
// TODO: Don't hide for mouse?
|
||||
dlg.classList.add('hiddenScroll');
|
||||
if (layoutManager.tv || layoutManager.mobile) {
|
||||
// Need scrollbars for mouse use
|
||||
dlg.classList.add('hiddenScroll');
|
||||
}
|
||||
|
||||
if (options.removeOnClose) {
|
||||
dlg.setAttribute('data-removeonclose', 'true');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue