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
bea9f41675
commit
6d7465f64d
5 changed files with 68 additions and 121 deletions
|
@ -50,13 +50,12 @@ define(['browser'], function (browser) {
|
|||
dependencies.push('legacy/dashboard');
|
||||
dependencies.push('legacy/selectmenu');
|
||||
dependencies.push('jqmcontrolgroup');
|
||||
dependencies.push('jqmlistview');
|
||||
}
|
||||
|
||||
if (isPluginpage || (newView.classList && newView.classList.contains('type-interior'))) {
|
||||
dependencies.push('jqmlistview');
|
||||
dependencies.push('scripts/notifications');
|
||||
dependencies.push('dashboardcss');
|
||||
dependencies.push('emby-icons');
|
||||
}
|
||||
|
||||
return new Promise(function (resolve, reject) {
|
||||
|
|
|
@ -135,25 +135,11 @@
|
|||
|
||||
.libraryViewNav {
|
||||
overflow: hidden;
|
||||
position: fixed;
|
||||
right: 0;
|
||||
left: 0;
|
||||
top: 50px;
|
||||
z-index: 999;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
white-space: nowrap;
|
||||
padding: 0 0 0;
|
||||
box-shadow: 0 2px 2px 0 rgba(0,0,0,.14),1px 5px 1px rgba(0,0,0,.12);
|
||||
}
|
||||
|
||||
.libraryViewNav.bottom {
|
||||
top: auto !important;
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
|
||||
.libraryViewNav {
|
||||
display: flex;
|
||||
display: block;
|
||||
text-align: center;
|
||||
|
@ -161,7 +147,20 @@
|
|||
align-items: center;
|
||||
}
|
||||
|
||||
.libraryViewNav .pageTabButton {
|
||||
.ui-body-b .libraryViewNav {
|
||||
box-shadow: 0 2px 2px 0 rgba(0,0,0,.14),1px 5px 1px rgba(0,0,0,.12);
|
||||
position: fixed;
|
||||
right: 0;
|
||||
left: 0;
|
||||
top: 50px;
|
||||
}
|
||||
|
||||
.libraryViewNav.bottom {
|
||||
top: auto !important;
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
.pageTabButton {
|
||||
background: transparent;
|
||||
border: 0 !important;
|
||||
cursor: pointer;
|
||||
|
@ -184,7 +183,7 @@
|
|||
line-height: initial;
|
||||
border-radius: 0 !important;
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
/*.libraryViewNav .pageTabButton:hover {
|
||||
background-color: transparent;
|
||||
|
@ -194,11 +193,11 @@
|
|||
background-color: rgba(100,100,100, 0.20);
|
||||
}*/
|
||||
|
||||
.libraryViewNav .pageTabButton:focus {
|
||||
.pageTabButton:focus {
|
||||
font-weight: bold !important;
|
||||
}
|
||||
|
||||
.libraryViewNav .pageTabButton.is-active {
|
||||
.pageTabButton.is-active {
|
||||
color: #52B54B !important;
|
||||
}
|
||||
|
||||
|
@ -218,7 +217,7 @@
|
|||
background: #52B54B;
|
||||
}
|
||||
|
||||
.viewMenuBar, .libraryViewNav {
|
||||
.viewMenuBar, .ui-body-b .libraryViewNav {
|
||||
background-color: #2b2b2b;
|
||||
color: #fff;
|
||||
}
|
||||
|
@ -252,63 +251,15 @@
|
|||
width: 100%;
|
||||
}
|
||||
|
||||
.viewMenuBarTabs paper-tabs {
|
||||
background: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.viewMenuBarTabs .paperTabLink {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
|
||||
.viewMenuBarTabs #tabsContent {
|
||||
display: block !important;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.viewMenuBarTabs #tabsContainer {
|
||||
margin: auto;
|
||||
-ms-flex: none;
|
||||
-webkit-flex: none;
|
||||
flex: none;
|
||||
flex-shrink: 0;
|
||||
flex-grow: 1;
|
||||
touch-action: auto !important;
|
||||
}
|
||||
|
||||
.viewMenuBarTabs paper-tabs {
|
||||
overflow: visible !important;
|
||||
}
|
||||
|
||||
.viewMenuBarTabs .paperTabLink {
|
||||
padding-left: 1.5em;
|
||||
padding-right: 1.5em;
|
||||
}
|
||||
|
||||
.viewMenuBar paper-icon-button.paper-tabs {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.viewMenuBar.semiTransparent {
|
||||
background-color: rgba(15, 15, 15, .3);
|
||||
}
|
||||
|
||||
.paperLibraryViewNav {
|
||||
background-color: transparent !important;
|
||||
}
|
||||
|
||||
.libraryViewNav iron-icon {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.libraryViewNav::-webkit-scrollbar {
|
||||
height: 0 !important;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.viewMenuLink {
|
||||
text-decoration: none;
|
||||
color: #eee !important;
|
||||
|
@ -469,12 +420,8 @@ body:not(.dashboardDocument) .headerAppsButton {
|
|||
padding-left: 272px;
|
||||
}
|
||||
|
||||
.mainDrawerPanel .viewMenuBarTabs paper-tab {
|
||||
width: auto !important;
|
||||
}
|
||||
|
||||
.mainDrawerPanel .viewMenuBarTabs .tab-content {
|
||||
display: block !important;
|
||||
.viewMenuBarTabs .libraryViewNav {
|
||||
text-align: left !important;
|
||||
}
|
||||
|
||||
.dashboardDocument .mainDrawer {
|
||||
|
|
|
@ -226,16 +226,11 @@ div[data-role='page'] {
|
|||
transform: translateY(-100%);
|
||||
}
|
||||
|
||||
.libraryViewNav:not(.paperLibraryViewNav).headroom--unpinned:not(.headroomDisabled) {
|
||||
.libraryViewNav.headroom--unpinned:not(.headroomDisabled) {
|
||||
-webkit-transform: translateY(-210%);
|
||||
transform: translateY(-210%);
|
||||
}
|
||||
|
||||
.paperLibraryViewNav.headroom--unpinned:not(.headroomDisabled) {
|
||||
-webkit-transform: translateY(-240%);
|
||||
transform: translateY(-240%);
|
||||
}
|
||||
|
||||
.checkboxContainer {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
html += '</div>';
|
||||
html += '</div>';
|
||||
|
||||
html += '<div class="viewMenuBarTabs hiddenScrollX">';
|
||||
html += '<div class="viewMenuBarTabs">';
|
||||
html += '</div>';
|
||||
|
||||
var viewMenuBar = document.createElement('div');
|
||||
|
@ -710,22 +710,29 @@
|
|||
|
||||
if (LibraryMenu.tabType != type) {
|
||||
|
||||
require(['paper-tabs'], function () {
|
||||
var index = 0;
|
||||
|
||||
var noInk = browserInfo.animate ? '' : ' noink';
|
||||
viewMenuBarTabs.innerHTML = '<div class="libraryViewNav hiddenScrollX">' + builder().map(function (t) {
|
||||
|
||||
viewMenuBarTabs.innerHTML = '<paper-tabs selected="' + selectedIndex + '" hidescrollbuttons ' + noInk + '>' + builder().map(function (t) {
|
||||
var tabClass = selectedIndex == index ? 'pageTabButton is-active' : 'pageTabButton';
|
||||
|
||||
return '<paper-tab link><a class="clearLink paperTabLink" href="' + t.href + '"><div>' + t.name + '</div></a></paper-tab>';
|
||||
var tabHtml = '<a class="' + tabClass + '" href="' + t.href + '" data-index="' + index + '">' + t.name + '<div class="pageTabButtonSelectionBar"></div></a>';
|
||||
index++;
|
||||
return tabHtml;
|
||||
|
||||
}).join('') + '</div>';
|
||||
|
||||
}).join('') + '</paper-tabs>';
|
||||
document.body.classList.add('withTallToolbar');
|
||||
LibraryMenu.tabType = type;
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
viewMenuBarTabs.querySelector('paper-tabs').selected = selectedIndex;
|
||||
var activeTab = viewMenuBarTabs.querySelector('.is-active');
|
||||
var newTab = viewMenuBarTabs.querySelector('.pageTabButton[data-index="' + selectedIndex + '"]');
|
||||
newTab.classList.add('is-active');
|
||||
if (newTab != activeTab && activeTab) {
|
||||
activeTab.classList.remove('is-active');
|
||||
}
|
||||
LibraryMenu.tabType = type;
|
||||
},
|
||||
|
||||
|
|
|
@ -1922,7 +1922,6 @@ var AppInfo = {};
|
|||
|
||||
define("jqmpanel", ['jqmbase', "thirdparty/jquerymobile-1.4.5/jqm.panel", 'css!thirdparty/jquerymobile-1.4.5/jqm.panel.css']);
|
||||
|
||||
define("iron-icon-set", ["html!" + bowerPath + "/iron-icon/iron-icon.html", "html!" + bowerPath + "/iron-iconset-svg/iron-iconset-svg.html"]);
|
||||
define("slideshow", [embyWebComponentsBowerPath + "/slideshow/slideshow"], returnFirstDependency);
|
||||
|
||||
define('fetch', [bowerPath + '/fetch/fetch']);
|
||||
|
@ -2595,7 +2594,7 @@ var AppInfo = {};
|
|||
|
||||
defineRoute({
|
||||
path: '/librarysettings.html',
|
||||
dependencies: ['emby-collapsible', 'paper-input', 'paper-checkbox', 'emby-button'],
|
||||
dependencies: ['emby-collapsible', 'paper-input', 'paper-checkbox', 'emby-button', 'jqmlistview'],
|
||||
autoFocus: false,
|
||||
roles: 'admin',
|
||||
controller: 'scripts/librarysettings'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue