no message

This commit is contained in:
2018-03-06 21:21:33 -05:00
parent 57f42584de
commit ca376559db
4 changed files with 11 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
<ion-content no-padding> <ion-content no-padding>
<ion-grid> <ion-grid>
<ion-row align-items-stretch> <ion-row align-items-stretch>
<ion-col col-4 *ngFor="let current of profiles" (tap)="profileTapped($event, current)" [style.backgroundImage]="getBackgroundThumbnail(current.details.pic)"></ion-col> <ion-col col-4 class="profile" *ngFor="let current of profiles" (tap)="profileTapped($event, current)" [style.backgroundImage]="getBackgroundThumbnail(current.details.pic)"></ion-col>
</ion-row> </ion-row>
</ion-grid> </ion-grid>
</ion-content> </ion-content>

View File

@@ -1,9 +1,12 @@
page-grid { page-grid {
.col { ion-col {
background-size: cover;
border: 1px solid #000000; &.profile {
box-sizing: border-box; background-size: cover;
padding: 0 0 33%; border: 1px solid #000000;
box-sizing: border-box;
padding: 0 0 33%;
}
} }
} }

View File

@@ -21,7 +21,7 @@ export class GridPage {
} }
getBackgroundThumbnail(pics) { getBackgroundThumbnail(pics) {
return this._sanitizer.bypassSecurityTrustStyle('url(' + pics.thumb + ')'); return this._sanitizer.bypassSecurityTrustStyle('url(https://appsby.fitz.guru/urge/' + pics.thumb + ')');
} }
profileTapped(event, profile) { profileTapped(event, profile) {

View File

@@ -30,7 +30,7 @@ export class ProfilePage {
} }
getBackground(pics) { getBackground(pics) {
return this._sanitizer.bypassSecurityTrustStyle('url(' + pics.detail + ')'); return this._sanitizer.bypassSecurityTrustStyle('url(https://appsby.fitz.guru/urge/' + pics.detail + ')');
} }
markFavorite(event, profile) { markFavorite(event, profile) {