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:
commit
c1f9cc9fcd
@ -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)]"
|
||||
|
Loading…
Reference in New Issue
Block a user