Add no result text if there are no results
authorChocobozzz <me@florianbigard.com>
Thu, 21 Dec 2017 10:08:46 +0000 (11:08 +0100)
committerChocobozzz <me@florianbigard.com>
Thu, 21 Dec 2017 10:09:46 +0000 (11:09 +0100)
client/src/app/account/account-videos/account-videos.component.html
client/src/app/shared/video/abstract-video-list.html
client/src/app/videos/+video-watch/video-watch.component.html
client/src/app/videos/+video-watch/video-watch.component.scss

index f73483039b61c46fc842406a18af5c115a1628e5..0755158b98050ce55d6db588900cdec189d845b7 100644 (file)
@@ -1,3 +1,5 @@
+<div *ngIf="pagination.totalItems === 0">No results.</div>
+
 <div
   class="videos"
   infiniteScroll
index 5761f2c818ba32a6e7e9ff72de6aaf61313bf951..60a2563b3dc2f56ada96d3a063daf29723a2c3a5 100644 (file)
@@ -3,6 +3,8 @@
     {{ titlePage }}
   </div>
 
+  <div *ngIf="pagination.totalItems === 0">No results.</div>
+
   <div
     class="videos"
     infiniteScroll
index d9b5724303a78c4c86bb9a579ae7833659057c04..860edecd293f1ff92a0e921bda362a421ef29b9b 100644 (file)
         <div class="video-info-name">{{ video.name }}</div>
 
         <div class="video-info-actions">
-          <div *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'like' }" class="action-button">
-            <span class="icon icon-like" title="Like this video" (click)="setLike()"></span>
+          <div
+              *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'like' }" (click)="setLike()"
+              class="action-button action-button-like">
+            <span class="icon icon-like" title="Like this video" ></span>
           </div>
 
-          <div *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'dislike' }" class="action-button">
-            <span class="icon icon-dislike" title="Dislike this video" (click)="setDislike()"></span>
+          <div
+              *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'dislike' }" (click)="setDislike()"
+              class="action-button action-button-dislike">
+            <span class="icon icon-dislike" title="Dislike this video"></span>
           </div>
 
           <div (click)="showShareModal()" class="action-button">
index 205a4333c5fc79fc51d5a272538e99aad7863fa2..02b44bda19dc4ca9d572bf1e740fbf62bc7f1d35 100644 (file)
 
       .video-info-actions {
         min-width: 215px;
+        display: flex;
+        justify-content: end;
+
+        .action-button:not(:first-child), .action-more {
+          margin-left: 10px;
+        }
 
         .action-button {
           @include peertube-button;
             }
           }
 
-          &.activated {
-            @include orange-button;
+          &.action-button-like.activated {
+            background-color: #39CC0B;
 
             .icon-like {
               background-image: url('../../../assets/images/video/like-white.svg');
             }
+          }
+
+          &.action-button-dislike.activated {
+            background-color: #FF0000;
 
             .icon-dislike {
               background-image: url('../../../assets/images/video/dislike-white.svg');
 }
 
 
-@media screen and (max-width: 1200px) {
+@media screen and (max-width: 1300px) {
   .other-videos {
     display: none;
   }