mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
overide itembackrop class backgroud-size cover to contain hide on desktop person backdrop
This commit is contained in:
parent
040f4af781
commit
69251cff48
2 changed files with 15 additions and 0 deletions
|
@ -387,6 +387,10 @@
|
|||
position: relative
|
||||
}
|
||||
|
||||
.personBackdrop {
|
||||
background-size: contain;
|
||||
}
|
||||
|
||||
.itemBackdropProgressBar {
|
||||
position: absolute !important;
|
||||
bottom: 0;
|
||||
|
@ -671,6 +675,10 @@
|
|||
display: none !important
|
||||
}
|
||||
|
||||
.personBackdropimg-hideondesktop {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.mainDetailButtons {
|
||||
font-size: 108%;
|
||||
margin: 1.25em 0
|
||||
|
|
|
@ -520,6 +520,13 @@ define(["loading", "appRouter", "layoutManager", "userSettings", "connectionMana
|
|||
itemBackdropElement.style.backgroundImage = "";
|
||||
}
|
||||
|
||||
if ("Person" === item.Type) {
|
||||
itemBackdropElement.classList.add("personBackdropimg-hideondesktop");
|
||||
itemBackdropElement.classList.add("personBackdrop");
|
||||
} else {
|
||||
itemBackdropElement.classList.remove("personBackdrop");
|
||||
}
|
||||
|
||||
return hasbackdrop;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue