FarmMapsLib/projects/common/src/fm/components/thumbnail/thumbnail.component.html
Willem Dantuma eb1157d608
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
Fix thumbnail editing, add blobtodataurl method
2021-08-05 16:33:31 +02:00

10 lines
658 B
HTML

<div #thumbnail class="thumbnail" [style.background-color]="itemTypeService.getColor(item.itemType)" >
<div class="content">
<img *ngIf="hasThumbnail()" class="card-img-top" [src]="getThumbnailUrl(item)" />
<div *ngIf="!hasThumbnail()" class="large-icon" [style.font-size]="getFontSize()" [style.line-height]="getLineHeight()"><i [ngClass]="itemTypeService.getIcon(item.itemType)"></i></div>
<div *ngIf="canEdit()" class="edit btn btn-secondary rounded-circle" (click)="onEditClick()"><i class="fal fa-camera"></i></div>
</div>
</div>
<fm-edit-image-modal #modal (changed)="onChanged($event)"></fm-edit-image-modal>