This commit is contained in:
Georgi Prodanov 2017-03-27 11:29:57 +03:00
Родитель 41c3d63749
Коммит 7aaedb3495
2 изменённых файлов: 10 добавлений и 7 удалений

Просмотреть файл

@ -50,10 +50,13 @@
color: rgba(255, 255, 255, .5);
}
.user.no-image {
.user-image {
width: 30;
height: 30;
margin-right: 5;
border-radius: 15;
}
.no-image.user-image {
margin-right: 5;
background-color: rgba(0, 0, 0, .35);
}

Просмотреть файл

@ -1,9 +1,9 @@
<StackLayout *ngIf="!resizedUrl">
<StackLayout class="{{type}} no-image editable" *ngIf="editable" (tap)="onEdit()" [ngClass]="{ 'large': !isSmall }">
<StackLayout class="{{type}}-image no-image editable" *ngIf="editable" (tap)="onEdit()" [ngClass]="{ 'large': !isSmall }">
<Label class="icon if" *ngIf="noImageIcon" [text]="noImageIcon"></Label>
<Label class="text" *ngIf="noImageText || !isSmall" [text]="noImageText"></Label>
</StackLayout>
<StackLayout class="{{type}} no-image" *ngIf="!editable" [ngClass]="{ 'large': !isSmall }">
<StackLayout class="{{type}}-image no-image" *ngIf="!editable" [ngClass]="{ 'large': !isSmall }">
<Label class="icon if" *ngIf="noImageIcon" [text]="noImageIcon"></Label>
<Label class="text" *ngIf="noImageText || !isSmall" [text]="noImageText"></Label>
</StackLayout>
@ -11,17 +11,17 @@
<StackLayout class="container" *ngIf="resizedUrl" [ngClass]="{ 'large': !isSmall }">
<StackLayout class="image-wrp editable" *ngIf="editable" (tap)="onEdit()">
<AbsoluteLayout *ngIf="noImageText || noImageIcon">
<Image top="0" left="0" class="image" [src]="resizedUrl"></Image>
<Image top="0" left="0" class="{{type}}-image image" [src]="resizedUrl"></Image>
<StackLayout top="0" left="0" class="icon-wrp">
<Label class="icon if" *ngIf="noImageIcon" [text]="noImageIcon"></Label>
<Label class="text" *ngIf="noImageText || !isSmall" [text]="noImageText"></Label>
</StackLayout>
</AbsoluteLayout>
<StackLayout *ngIf="!noImageText && !noImageIcon">
<Image class="image" [src]="resizedUrl"></Image>
<Image class="{{type}}-image image" [src]="resizedUrl"></Image>
</StackLayout>
</StackLayout>
<StackLayout class="image-wrp" *ngIf="!editable">
<Image class="image" [src]="resizedUrl"></Image>
<Image class="{{type}}-image image" [src]="resizedUrl"></Image>
</StackLayout>
</StackLayout>