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

update movie/tv genre displays

This commit is contained in:
Luke Pulverenti 2016-11-15 22:05:53 -05:00
parent 0dacc82ab7
commit 0291450ffb
5 changed files with 19 additions and 9 deletions

View file

@ -74,7 +74,7 @@
info.Path = page.querySelector('.txtPath').value;
info.MoviePrefix = page.querySelector('.txtMoviePrefix');
info.MoviePrefix = page.querySelector('.txtMoviePrefix') || null;
info.MovieCategories = getCategories(page.querySelector('.txtMovies'));
info.KidsCategories = getCategories(page.querySelector('.txtKids'));

View file

@ -104,7 +104,7 @@
<div class="paging"></div>
</div>
</div>
<div class="pageTabContent ehsContent" id="genresTab" data-index="4">
<div class="pageTabContent ehsContent fullWidth" id="genresTab" data-index="4">
<div style="text-align: center; display: flex; flex-wrap: wrap; align-items: center; justify-content: center;padding:0 .5em;">
<button is="paper-icon-button-light" class="btnSelectView autoSize" title="${ButtonSelectView}"><i class="md-icon">view_comfy</i></button>
</div>

View file

@ -19,7 +19,7 @@
Recursive: true,
EnableTotalRecordCount: false
},
view: libraryBrowser.getSavedView(key) || 'PosterCard'
view: libraryBrowser.getSavedView(key) || (appHost.preferVisualCards ? 'PosterCard' : 'Poster')
};
pageData.query.ParentId = params.topParentId;
@ -68,6 +68,10 @@
5 :
8;
if (enableScrollX()) {
limit = 10;
}
var enableImageTypes = viewStyle == 'Thumb' || viewStyle == 'ThumbCard' ?
"Primary,Backdrop,Thumb" :
"Primary";
@ -82,7 +86,8 @@
EnableImageTypes: enableImageTypes,
Limit: limit,
GenreIds: id,
EnableTotalRecordCount: false
EnableTotalRecordCount: false,
ParentId: params.topParentId
};
ApiClient.getItems(Dashboard.getCurrentUserId(), query).then(function (result) {

View file

@ -19,7 +19,7 @@
Recursive: true,
EnableTotalRecordCount: false
},
view: libraryBrowser.getSavedView(key) || 'PosterCard'
view: libraryBrowser.getSavedView(key) || (appHost.preferVisualCards ? 'PosterCard' : 'Poster')
};
pageData.query.ParentId = params.topParentId;
@ -68,6 +68,10 @@
5 :
8;
if (enableScrollX()) {
limit = 10;
}
var enableImageTypes = viewStyle == 'Thumb' || viewStyle == 'ThumbCard' ?
"Primary,Backdrop,Thumb" :
"Primary";
@ -82,7 +86,8 @@
EnableImageTypes: enableImageTypes,
Limit: limit,
GenreIds: id,
EnableTotalRecordCount: false
EnableTotalRecordCount: false,
ParentId: params.topParentId
};
ApiClient.getItems(Dashboard.getCurrentUserId(), query).then(function (result) {
@ -112,7 +117,7 @@
centerText: false,
cardLayout: true,
vibrant: supportsImageAnalysis,
showYear: true
showSeriesYear: true
});
}
else if (viewStyle == "PosterCard") {
@ -124,7 +129,7 @@
centerText: false,
cardLayout: true,
vibrant: supportsImageAnalysis,
showYear: true
showSeriesYear: true
});
}
else if (viewStyle == "Poster") {

View file

@ -87,7 +87,7 @@
<div class="paging"></div>
</div>
</div>
<div class="pageTabContent ehsContent" id="genresTab" data-index="4">
<div class="pageTabContent ehsContent fullWidth" id="genresTab" data-index="4">
<div style="text-align: center; display: flex; align-items: center; justify-content: center;">
<button is="paper-icon-button-light" class="btnSelectView autoSize" title="${ButtonSelectView}"><i class="md-icon">view_comfy</i></button>
</div>