Fix background size for TV channel logos

This commit is contained in:
Bill Thornton 2020-08-20 11:42:09 -04:00
parent c3d458b148
commit 8194b19d0c
2 changed files with 8 additions and 0 deletions

View File

@ -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;

View File

@ -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) {