Zoom correct des images uploadées dans le

profil utilisateur.
This commit is contained in:
Sébastien André
2021-04-07 10:24:41 +02:00
parent 6b927be26a
commit ec2b53955d
2 changed files with 38 additions and 35 deletions

View File

@@ -1,7 +1,7 @@
.slide-modal {
.imgmodal {
display: none;
position: fixed;
z-index: 1;
z-index: 1000;
padding-top: 10px;
left: 0;
top: 0;
@@ -9,25 +9,28 @@
height: 100%;
overflow: auto;
background-color: #000000;
}
}
.slide-modal-content {
/* position: relative; */
.imgbox {
display: grid;
height: 100%;
}
.center-fit {
max-width: 100%;
max-height: 100vh;
margin: auto;
padding: 0;
width: 100%;
max-width: 1200px;
}
}
.close {
.close {
color: white;
position: absolute;
top: 10px;
right: 25px;
font-size: 35px;
font-weight: bold;
}
}
.cursor {
.cursor {
cursor: pointer;
}
}

View File

@@ -40,9 +40,9 @@
<mat-paginator [length]="resultsLength" [pageSize]="10"></mat-paginator>
</div>
<div id="imgModal" class="slide-modal" [ngStyle]="{'display': (showPopin === true) ? 'block' : 'none'}">
<div class="imgmodal" [ngStyle]="{'display': (showPopin === true) ? 'block' : 'none'}">
<span class="close cursor" (click)="closeModal()">&times;</span>
<div class="slide-modal-content">
<img class="images" src="{{ popinImage }}" (click)="closeModal()" style="width: 100%; display: table;">
<div class="imgbox">
<img class="center-fit cursor" src="{{ popinImage }}" (click)="closeModal()">
</div>
</div>