mirror of https://github.com/Chocobozzz/PeerTube
Apply a fade instead of a loader when loading videos
parent
192ea60b82
commit
7914607ecd
|
@ -4,11 +4,9 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="videos-miniatures">
|
<div class="videos-miniatures">
|
||||||
<my-loader [loading]="loading"></my-loader>
|
|
||||||
|
|
||||||
<div class="col-md-12 no-video" *ngIf="noVideo()">There is no video.</div>
|
<div class="col-md-12 no-video" *ngIf="noVideo()">There is no video.</div>
|
||||||
|
|
||||||
<my-video-miniature *ngFor="let video of videos" [video]="video" [user]="user" (removed)="onRemoved(video)">
|
<my-video-miniature class="ng-animate "*ngFor="let video of videos" [video]="video" [user]="user" (removed)="onRemoved(video)">
|
||||||
</my-video-miniature>
|
</my-video-miniature>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -21,8 +21,20 @@
|
||||||
.videos-miniatures {
|
.videos-miniatures {
|
||||||
min-height: 600px;
|
min-height: 600px;
|
||||||
|
|
||||||
my-videos-miniature {
|
my-video-miniature {
|
||||||
display: inline-block;
|
transition: all 0.5s ease;
|
||||||
|
|
||||||
|
&.ng-enter {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.ng-enter-active {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.ng-leave {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.no-video {
|
.no-video {
|
||||||
|
|
Loading…
Reference in New Issue