Fix playlist more button with long video names
[oweals/peertube.git] / client / src / app / shared / video-playlist / video-playlist-element-miniature.component.scss
index cb7072d7f3fe4559ab3d19bef58bdb6023ef4155..b55ca0deac106f74b81998a7c2ca2da1a566b1cd 100644 (file)
@@ -2,9 +2,21 @@
 @import '_mixins';
 @import '_miniature';
 
+$thumbnail-width: 130px;
+$thumbnail-height: 72px;
+
 my-video-thumbnail {
-  @include thumbnail-size-component(130px, 72px);
+  @include thumbnail-size-component($thumbnail-width, $thumbnail-height);
+}
 
+.fake-thumbnail {
+  width: $thumbnail-width;
+  height: $thumbnail-height;
+  background-color: #ececec;
+}
+
+my-video-thumbnail,
+.fake-thumbnail {
   display: flex; // Avoids an issue with line-height that adds space below the element
   margin-right: 10px;
 }
@@ -31,6 +43,7 @@ my-video-thumbnail {
   a {
     @include disable-default-a-behaviour;
 
+    color: var(--mainForegroundColor);
     display: flex;
     min-width: 0;
     align-items: center;
@@ -58,7 +71,6 @@ my-video-thumbnail {
       min-width: 0;
 
       a {
-        color: var(--mainForegroundColor);
         width: auto;
 
         &:hover {
@@ -66,25 +78,26 @@ my-video-thumbnail {
         }
       }
 
-      .video-info-name {
-        font-size: 18px;
-        font-weight: $font-semibold;
-        display: inline-block;
-
-        @include ellipsis;
-      }
-
       .video-info-account, .video-info-timestamp {
         color: $grey-foreground-color;
       }
     }
   }
 
+  .video-info-name {
+    font-size: 18px;
+    font-weight: $font-semibold;
+    display: inline-block;
+
+    @include ellipsis;
+  }
+
   .more {
     justify-self: flex-end;
     margin-left: auto;
     cursor: pointer;
     opacity: 0;
+    min-width: 24px;
 
     &.show {
       opacity: 1;