]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix miniature with a long name
authorChocobozzz <me@florianbigard.com>
Thu, 15 Nov 2018 10:54:09 +0000 (11:54 +0100)
committerChocobozzz <me@florianbigard.com>
Thu, 15 Nov 2018 15:38:36 +0000 (16:38 +0100)
client/src/app/shared/video/video-miniature.component.html
client/src/sass/include/_mixins.scss

index 277a0cf35251f779f77d60198c1b786db9ee1a5e..2c635fa2f7b50c1c600025f80c84d716736c3be8 100644 (file)
@@ -7,10 +7,10 @@
       class="video-miniature-name"
       [routerLink]="[ '/videos/watch', video.uuid ]" [attr.title]="video.name" [ngClass]="{ 'blur-filter': isVideoBlur }"
     >
-      {{ video.name }}
-
       <span *ngIf="isUnlistedVideo()" class="badge badge-warning" i18n>Unlisted</span>
       <span *ngIf="isPrivateVideo()" class="badge badge-danger" i18n>Private</span>
+
+      {{ video.name }}
     </a>
 
     <span i18n class="video-miniature-created-at-views">{{ video.publishedAt | myFromNow }} - {{ video.views | myNumberFormatter }} views</span>
index b25d7ae0f19d0f88ee302f80e556583b8591ec63..d6f391a457158a3e0c910ec0be55f160ec1f4f8d 100644 (file)
@@ -29,7 +29,7 @@
   display: block;
   /* Fallback for non-webkit */
   display: -webkit-box;
-  max-height: $font-size*$line-height*$lines-to-show + 0.2;
+  max-height: $font-size * $line-height * $lines-to-show;
   /* Fallback for non-webkit */
   font-size: $font-size;
   line-height: $line-height;
       }
     }
   }
-}
\ No newline at end of file
+}