Fix channel playlist miniatures overflow
authorChocobozzz <me@florianbigard.com>
Fri, 29 Nov 2019 15:20:23 +0000 (16:20 +0100)
committerChocobozzz <me@florianbigard.com>
Fri, 29 Nov 2019 15:20:23 +0000 (16:20 +0100)
client/src/app/+video-channels/video-channel-playlists/video-channel-playlists.component.html
client/src/app/+video-channels/video-channel-playlists/video-channel-playlists.component.scss

index 1adc5018076f1d7351206dd6b7817a7fbf772b9a..3990e73da895a3dd66e8d986521d5d0b305c1d5e 100644 (file)
@@ -5,7 +5,7 @@
 <div i18n class="no-results" *ngIf="pagination.totalItems === 0">This channel does not have playlists.</div>
 
 <div class="video-playlist" myInfiniteScroller (nearOfBottom)="onNearOfBottom()" [dataObservable]="onDataSubject.asObservable()">
-  <div *ngFor="let playlist of videoPlaylists">
+  <div *ngFor="let playlist of videoPlaylists" class="playlist-miniature-container">
     <my-video-playlist-miniature [playlist]="playlist" [toManage]="false"></my-video-playlist-miniature>
   </div>
 </div>
index fe9104794dc8627c049fefaee321279d369a5842..f0fe7503fdf6096b9ae2d15c7af36ab8e3842f0a 100644 (file)
@@ -1,8 +1,9 @@
 .video-playlist {
   display: flex;
+  flex-wrap: wrap;
   justify-content: center;
 
-  my-video-playlist-miniature {
+  .playlist-miniature-container {
     margin-right: 15px;
     margin-bottom: 30px;
   }