mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Disable item backdrops for people
This commit is contained in:
parent
af00a04e76
commit
d69245361c
1 changed files with 10 additions and 4 deletions
|
@ -560,14 +560,20 @@ function renderBackdrop(item) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function renderDetailPageBackdrop(page, item, apiClient) {
|
function renderDetailPageBackdrop(page, item, apiClient) {
|
||||||
let imgUrl;
|
// Details banner is disabled in user settings
|
||||||
let hasbackdrop = false;
|
|
||||||
const itemBackdropElement = page.querySelector('#itemBackdrop');
|
|
||||||
|
|
||||||
if (!userSettings.detailsBanner()) {
|
if (!userSettings.detailsBanner()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Disable item backdrop for people because they never look right
|
||||||
|
if (item.Type === 'Person') {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
let imgUrl;
|
||||||
|
let hasbackdrop = false;
|
||||||
|
const itemBackdropElement = page.querySelector('#itemBackdrop');
|
||||||
|
|
||||||
if (item.BackdropImageTags && item.BackdropImageTags.length) {
|
if (item.BackdropImageTags && item.BackdropImageTags.length) {
|
||||||
imgUrl = apiClient.getScaledImageUrl(item.Id, {
|
imgUrl = apiClient.getScaledImageUrl(item.Id, {
|
||||||
type: 'Backdrop',
|
type: 'Backdrop',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue