Rotation de l'image zoomée
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
<ng-container matColumnDef="data">
|
||||
<th mat-header-cell *matHeaderCellDef style="text-align: center;">Image</th>
|
||||
<td mat-cell *matCellDef="let element" style="text-align: center;">
|
||||
<img src="{{element.data}}" alt="image" style="width:50%;" (click)="openModal(element)">
|
||||
<img src="{{element.data}}" alt="image" style="width:50%;" (click)="openModal(element)" class="cursor">
|
||||
</td>
|
||||
</ng-container>
|
||||
|
||||
@@ -42,7 +42,8 @@
|
||||
|
||||
<div class="imgmodal" [ngStyle]="{'display': (showPopin === true) ? 'block' : 'none'}">
|
||||
<span class="close cursor" (click)="closeModal()">×</span>
|
||||
<mat-icon aria-hidden="false" aria-label="Rotation" (click)="rotate()" class="rotate cursor">undo</mat-icon>
|
||||
<div class="imgbox">
|
||||
<img class="center-fit cursor" src="{{ popinImage }}" (click)="closeModal()">
|
||||
<img class="center-fit cursor" src="{{ popinImage }}" (click)="closeModal()" [@rotatedState]='stateRotation'>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user