mirror of
https://github.com/xuthus83/pigallery2.git
synced 2025-01-14 14:43:17 +08:00
fixing video design error
This commit is contained in:
parent
2427e6f054
commit
1136d8ff32
@ -1,20 +1,22 @@
|
||||
<div #photoContainer class="photo-container" (mouseover)="mouseOver()" (mouseout)="mouseOut()">
|
||||
|
||||
|
||||
<img #img [src]="thumbnail.Src | fixOrientation:gridPhoto.Orientation | async"
|
||||
<img alt="{{gridPhoto.media.name}}" #img [src]="thumbnail.Src | fixOrientation:gridPhoto.Orientation | async"
|
||||
*ngIf="thumbnail.Available">
|
||||
|
||||
<div *ngIf="gridPhoto.isVideo()" class="video-indicator"
|
||||
[style.marginTop.px]="-container.nativeElement.offsetHeight"
|
||||
[style.marginLeft.px]="container.nativeElement.offsetWidth">
|
||||
{{gridPhoto.Video.metadata.duration | duration}} <span class="oi oi-video"></span></div>
|
||||
|
||||
<app-gallery-grid-photo-loading
|
||||
[error]="thumbnail.Error"
|
||||
[animate]="thumbnail.loading"
|
||||
*ngIf="!thumbnail.Available">
|
||||
</app-gallery-grid-photo-loading>
|
||||
|
||||
|
||||
<div *ngIf="gridPhoto.isVideo()" class="video-indicator"
|
||||
[style.marginTop.px]="-container.nativeElement.offsetHeight"
|
||||
[style.marginLeft.px]="container.nativeElement.offsetWidth">
|
||||
{{gridPhoto.Video.metadata.duration | duration}} <span class="oi oi-video"></span></div>
|
||||
|
||||
|
||||
<!--Info box -->
|
||||
<div #info class="info"
|
||||
*ngIf="infoBar.visible"
|
||||
|
Loading…
x
Reference in New Issue
Block a user