display series image when episodes have no image

This commit is contained in:
Luke Pulverenti 2016-12-08 00:59:43 -05:00
parent 672f3f4e85
commit 5ea7aaa406
3 changed files with 14 additions and 2 deletions

View File

@ -291,6 +291,8 @@ span.itemCommunityRating:not(:empty) + .userDataIcons {
.detailImageContainer { .detailImageContainer {
margin-right: 2em; margin-right: 2em;
width: 280px;
flex-shrink: 0;
} }
.detailPagePrimaryContent { .detailPagePrimaryContent {
@ -325,10 +327,10 @@ span.itemCommunityRating:not(:empty) + .userDataIcons {
.itemDetailImage { .itemDetailImage {
border: solid 1px transparent; border: solid 1px transparent;
width: 280px; width: 100%;
} }
.thumbDetailImageContainer .itemDetailImage { .thumbDetailImageContainer {
width: 400px; width: 400px;
} }
@ -355,6 +357,7 @@ span.itemCommunityRating:not(:empty) + .userDataIcons {
position: absolute; position: absolute;
top: -90px; top: -90px;
left: 5%; left: 5%;
width: auto;
} }
.itemDetailImage { .itemDetailImage {

View File

@ -89,6 +89,7 @@ h1, h2, h3 {
h1 { h1 {
font-weight: normal !important; font-weight: normal !important;
opacity: .7; opacity: .7;
font-size: 1.72em;
} }
h2 { h2 {

View File

@ -801,6 +801,14 @@
}); });
shape = 'square'; shape = 'square';
} }
else if (item.SeriesId && item.SeriesPrimaryImageTag) {
url = ApiClient.getScaledImageUrl(item.SeriesId, {
type: "Primary",
maxHeight: imageHeight,
tag: item.SeriesPrimaryImageTag
});
}
html += '<div style="position:relative;">'; html += '<div style="position:relative;">';