Fixing poster image (#409)

- Removing width to prevent stretching
- Adding alignment to center image within container
This commit is contained in:
Robbie Davis 2021-07-20 13:26:02 -04:00 committed by GitHub
parent b11bb0e3b5
commit 27be13a201
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -1,6 +1,6 @@
<div class="container-fluid" *ngIf="series !== undefined" style="padding-top: 10px">
<div class="row mb-3">
<div class="col-md-2 col-xs-4 col-sm-6">
<div class="col-md-2 col-xs-4 col-sm-6 image-center">
<img class="poster" [lazyLoad]="imageService.getSeriesCoverImage(series.id)" [defaultImage]="imageService.placeholderImage">
</div>
<div class="col-md-10 col-xs-8 col-sm-6">

View File

@ -6,8 +6,11 @@
}
.image-center {
text-align: center;
}
.poster {
width: 100%;
max-height: 230px;
}