1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-12-04 10:34:45 +02:00

Merge pull request #252 from bpatrik/feature-zommed-faces

Enabling faces zoom in photo preview (lightbox) #249 #240
This commit is contained in:
Patrik J. Braun 2021-04-06 11:56:18 +02:00 committed by GitHub
commit c1f9cc9fcd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,11 +51,11 @@
(click)="mediaElement.playPause()">
<div class="faces-container"
[style.top.px]="photoFrameDim.height/2"
[style.left.px]="photoFrameDim.width/2"
[style.width.px]="faceContainerDim.width"
[style.height.px]="faceContainerDim.height"
*ngIf="facesEnabled && activePhoto && zoom == 1 && activePhoto.gridMedia.Photo.metadata.faces && activePhoto.gridMedia.Photo.metadata.faces.length > 0">
[style.top.px]="photoFrameDim.height/2 + drag.y"
[style.left.px]="photoFrameDim.width/2 + drag.x"
[style.width.px]="faceContainerDim.width* zoom"
[style.height.px]="faceContainerDim.height* zoom"
*ngIf="facesEnabled && activePhoto && activePhoto.gridMedia.Photo.metadata.faces && activePhoto.gridMedia.Photo.metadata.faces.length > 0">
<a
class="face"
[routerLink]="['/search', getPersonSearchQuery(face.name)]"