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-grid>
<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-grid>
</ion-content>

View File

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

View File

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

View File

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