prevent video-bottom overflow in video-miniature
authorRigel Kent <sendmemail@rigelk.eu>
Thu, 11 Jun 2020 10:23:01 +0000 (12:23 +0200)
committerRigel Kent <sendmemail@rigelk.eu>
Thu, 11 Jun 2020 10:23:01 +0000 (12:23 +0200)
client/src/app/shared/video/video-miniature.component.scss

index 34f34f2287a8fb08bd998a17a7dbf6b4daff503b..1e5580b9aabeb7b7396d565fe5806a5de1689511 100644 (file)
@@ -8,9 +8,10 @@ $more-margin-right: 15px;
 .video-miniature {
   display: inline-flex;
   flex-direction: column;
-  margin-bottom: $video-miniature-margin-bottom;
+  padding-bottom: $video-miniature-margin-bottom;
   height: 195px;
   vertical-align: top;
+  overflow: hidden;
 
   .video-bottom {
     display: flex;
@@ -109,7 +110,7 @@ $more-margin-right: 15px;
   &.fit-width {
     width: 100%;
     height: unset;
-    margin-bottom: $video-miniature-margin-bottom / 2;
+    padding-bottom: $video-miniature-margin-bottom / 2;
 
     .video-bottom {
       width: 100% !important;
@@ -126,7 +127,7 @@ $more-margin-right: 15px;
 
   &.display-as-row {
     flex-direction: row;
-    margin-bottom: 0;
+    padding-bottom: 0;
     height: auto;
     display: flex;
     flex-grow: 1;