fix gifs not being collapsed in viewer

This commit is contained in:
Nicolas Constant 2020-04-15 00:15:09 -04:00
parent 1519cb0b3d
commit a4bcddf533
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@
<img *ngIf="att.type === 'image'" src="{{att.url}}" class="media-viewer-canvas__image" [class.collapsed]="currentIndex !== att.index" />
</a>
<video *ngIf="att.type === 'gifv'" class="media-viewer-canvas__image" role="application" loop autoplay>
<video *ngIf="att.type === 'gifv'" class="media-viewer-canvas__image" role="application" loop autoplay [class.collapsed]="currentIndex !== att.index">
<source src="{{att.url}}" type="video/mp4">
</video>
<video *ngIf="att.type === 'video'" class="media-viewer-canvas__image" role="application" loop autoplay