mirror of
https://github.com/bpatrik/pigallery2.git
synced 2024-12-21 01:22:08 +02:00
f9481c9f6e
Refactoring lightbox
14 lines
599 B
HTML
14 lines
599 B
HTML
<div #gridContainer *ngIf="directory" (window:resize)="onResize()" >
|
|
<gallery-photo
|
|
*ngFor="let gridPhoto of photosToRender"
|
|
*ngIf="gridPhoto"
|
|
(click)="lightbox.show(gridPhoto.photo)"
|
|
[photo]="gridPhoto.photo"
|
|
[directory]="directory"
|
|
[style.width.px]="gridPhoto.renderWidth"
|
|
[style.height.px]="gridPhoto.renderHeight"
|
|
[style.marginLeft.px]="IMAGE_MARGIN"
|
|
[style.marginRight.px]="IMAGE_MARGIN">
|
|
|
|
</gallery-photo>
|
|
</div> |