Merge pull request #1439 from crazyserver/MOBILE-2543

MOBILE-2543 courses: Thumb course image with white background
main
Juan Leyva 2018-08-21 14:34:45 +01:00 committed by GitHub
commit 0725cd66ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 1 deletions

View File

@ -18,6 +18,7 @@ core-course-format {
cursor: pointer;
pointer-events: auto;
position: relative;
background: white;
img {
position: absolute;

View File

@ -1,5 +1,5 @@
<ion-card>
<div (click)="openCourse(course)" class="core-course-thumb core-course-color-{{course.id % 10}}">
<div (click)="openCourse(course)" class="core-course-thumb core-course-color-{{course.id % 10}}" [class.core-course-color-img]="course.imageThumb">
<img *ngIf="course.imageThumb" [src]="course.imageThumb" core-external-content alt=""/>
</div>
<ion-item tappable text-wrap detail-none (click)="openCourse(course)" [title]="course.fullname" class="core-course-link">

View File

@ -17,6 +17,10 @@ core-courses-course-progress {
}
}
&.core-course-color-img {
background: white;
}
img {
position: absolute;
top: 0;