1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-12-21 01:22:08 +02:00
pigallery2/frontend/app/gallery/grid/grid.gallery.component.html

20 lines
743 B
HTML
Raw Normal View History

2016-04-27 22:37:07 +02:00
<div class="lightboxCss"
#lightbox
(click)="hideLightBox()" >
2016-04-27 22:37:07 +02:00
<img [src]="lightboxModel.image.src" width="100%" height="100%"/>
</div>
<div #gridContainer *ngIf="directory" (window:resize)="onResize()" >
<gallery-photo
*ngFor="let gridPhoto of photosToRender"
*ngIf="gridPhoto"
(click)="showLightBox(gridPhoto)"
[photo]="gridPhoto.photo"
[directory]="directory"
[style.width.px]="gridPhoto.renderWidth"
[style.height.px]="gridPhoto.renderHeight"
2016-04-27 22:37:07 +02:00
[style.marginLeft.px]="IMAGE_MARGIN"
[style.marginRight.px]="IMAGE_MARGIN">
</gallery-photo>
</div>