fixes #1422 - photo scaling

This commit is contained in:
Luke Pulverenti 2016-01-27 00:54:18 -05:00
parent eb0eb7bf89
commit f688d34285
2 changed files with 8 additions and 1 deletions

View File

@ -293,10 +293,14 @@
}
.coveredCardImage {
background-size: cover;
background-size: 100% 100%;
background-position: center center;
}
.coveredCardImage.noScale {
background-size: cover;
}
.centeredCardImage {
background-position: center center;
}

View File

@ -2126,6 +2126,9 @@
if (coverImage) {
imageCssClass += " coveredCardImage";
if (item.MediaType == 'Photo' || item.Type == 'PhotoAlbum' || item.Type == 'Folder') {
imageCssClass += " noScale";
}
}
if (options.centerImage) {
imageCssClass += " centeredCardImage";