Fixed poster text not clickable and fixed image height

pull/4003/head
twanariens 4 years ago
parent 7d34933542
commit c1d7cb0b99

@ -9,21 +9,24 @@
<span>{{getAvailbilityStatus()}}</span> <span>{{getAvailbilityStatus()}}</span>
</div> </div>
</div> </div>
<a>
<img [routerLink]="generateDetailsLink()" id="cardImage" src="{{result.posterPath}}" class="image" <img [routerLink]="generateDetailsLink()" id="cardImage" src="{{result.posterPath}}" class="image"
alt="{{result.title}}"> alt="{{result.title}}">
<div class="middle"> <div class="middle">
<a class="poster-overlay" [routerLink]="generateDetailsLink()">
<div class="summary">
<div class="title">{{result.title}}</div> <div class="title">{{result.title}}</div>
<div class="small-text ellipsis">{{result.overview}}</div> <div class="small-text ellipsis">{{result.overview}}</div>
</div>
</a>
<div class="row" *ngIf="!result.available && !result.approved"> <div class="row" *ngIf="!result.available && !result.approved">
<div class="col-12"> <div class="col-12">
<button mat-raised-button class="btn-green full-width" (click)="request($event)"> <button mat-raised-button class="btn-green full-width poster-request-btn" (click)="request($event)">
<mat-icon *ngIf="!loading">cloud_download</mat-icon> <mat-icon *ngIf="!loading">cloud_download</mat-icon>
<i *ngIf="loading" class="fa fa-spinner fa-pulse fa-2x fa-fw" aria-hidden="true"></i> <i *ngIf="loading" class="fa fa-spinner fa-pulse fa-2x fa-fw" aria-hidden="true"></i>
</button> </button>
</div> </div>
</div> </div>
</div> </div>
</a>
</div> </div>

@ -63,14 +63,11 @@ small {
.ombi-card{ .ombi-card{
height:100%; height:100%;
} }
@media (min-width: 2000px) {
#cardImage { #cardImage {
height: 100%; height: 100%;
object-fit: cover; object-fit: cover;
display: block; display: block;
} }
}
@ -208,3 +205,11 @@ small {
display: inline-block; display: inline-block;
background-color: #ffd740; background-color: #ffd740;
} }
::ng-deep a.poster-overlay{
color:#fff;
}
a.poster-overlay:hover{
text-decoration: none;
}
Loading…
Cancel
Save