mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 11:28:23 -07:00
fixes #1422 - photo scaling
This commit is contained in:
parent
eb0eb7bf89
commit
f688d34285
@ -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;
|
||||
}
|
||||
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user