mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix background size for TV channel logos
This commit is contained in:
parent
c3d458b148
commit
8194b19d0c
2 changed files with 8 additions and 0 deletions
|
@ -244,6 +244,10 @@ button::-moz-focus-inner {
|
||||||
background-position: center center;
|
background-position: center center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.coveredImage.coveredImage-contain {
|
||||||
|
background-size: contain;
|
||||||
|
}
|
||||||
|
|
||||||
.cardFooter {
|
.cardFooter {
|
||||||
padding: 0.3em 0.3em 0.5em 0.3em;
|
padding: 0.3em 0.3em 0.5em 0.3em;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
|
@ -1211,6 +1211,10 @@ import 'programStyles';
|
||||||
|
|
||||||
if (coveredImage) {
|
if (coveredImage) {
|
||||||
cardImageContainerClass += ' coveredImage';
|
cardImageContainerClass += ' coveredImage';
|
||||||
|
|
||||||
|
if (item.Type === 'TvChannel') {
|
||||||
|
cardImageContainerClass += ' coveredImage-contain';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!imgUrl) {
|
if (!imgUrl) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue