switch margin-bottom rules to padding-bottom now used in miniature
authorRigel Kent <sendmemail@rigelk.eu>
Fri, 12 Jun 2020 10:27:37 +0000 (12:27 +0200)
committerRigel Kent <sendmemail@rigelk.eu>
Fri, 12 Jun 2020 10:27:37 +0000 (12:27 +0200)
client/src/app/videos/+video-watch/video-watch.component.scss
client/src/app/videos/recommendations/recommended-videos.component.html
client/src/app/videos/recommendations/recommended-videos.component.scss

index e0d41117a0aabd9e9806778464500a29daca6a75..2e083982eb46fe42d488b480be841228746fb3c8 100644 (file)
@@ -122,7 +122,7 @@ $video-info-margin-left: 44px;
 
 .video-bottom {
   display: flex;
-  margin-top: 40px;
+  margin-top: 1.5rem;
 
   .video-info {
     flex-grow: 1;
@@ -418,7 +418,7 @@ $video-info-margin-left: 44px;
       display: flex;
       width: max-content;
       height: 100%;
-      margin-bottom: 20px;
+      padding-bottom: 20px;
       flex-wrap: wrap;
     }
 
@@ -552,7 +552,7 @@ my-video-comments {
 @media screen and (max-width: 600px) {
   .video-bottom {
     margin-top: 20px !important;
-    margin-bottom: 20px !important;
+    padding-bottom: 20px !important;
 
     .video-info {
       padding: 0;
index e4568c30952714fcd0f0be13a8cba50e48f4a021..a40266028996a414b8751db997aa079e2010802a 100644 (file)
       </div>
     </div>
 
-    <div *ngFor="let video of (videos$ | async); let i = index; let length = count">
-      <my-video-miniature [displayOptions]="displayOptions" [video]="video" [user]="user" (videoBlocked)="onVideoRemoved()" (videoRemoved)="onVideoRemoved()">
+    <ng-container *ngFor="let video of (videos$ | async); let i = index; let length = count">
+      <my-video-miniature 
+        [displayOptions]="displayOptions" [video]="video" [user]="user"
+        (videoBlocked)="onVideoRemoved()" (videoRemoved)="onVideoRemoved()">
       </my-video-miniature>
       
       <hr *ngIf="!playlist && i == 0 && length > 1" />
-    </div>
+    </ng-container>
   </ng-container>
 </div>
index cde62f87f7471f6d87837c23f1d407cc94b09e21..b278c9654ef532d481770a53fa53928c6e4268a2 100644 (file)
@@ -25,3 +25,7 @@
     font-weight: 600;
   }
 }
+
+hr {
+  margin-top: 0;
+}