]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix playlist overflow in account channels page
authorChocobozzz <me@florianbigard.com>
Tue, 25 Oct 2022 14:00:34 +0000 (16:00 +0200)
committerChocobozzz <me@florianbigard.com>
Tue, 25 Oct 2022 14:00:34 +0000 (16:00 +0200)
client/src/app/+accounts/account-video-channels/account-video-channels.component.html
client/src/app/+accounts/account-video-channels/account-video-channels.component.scss

index 200d9415fa73628b622a82c00f08050405c41d55..38293b070612e43d38b3cf9a0b1036bdf0d46c1f 100644 (file)
 
       <a i18n class="button-show-channel peertube-button-link orange-button-inverted" [routerLink]="getVideoChannelLink(videoChannel)">Show this channel</a>
 
-      <div class="videos">
-        <div class="no-results" i18n *ngIf="getTotalVideosOf(videoChannel) === 0">This channel doesn't have any videos.</div>
-
-        <my-video-miniature
-          *ngFor="let video of getVideosOf(videoChannel)"
-          [video]="video" [user]="userMiniature" [displayVideoActions]="true" [displayOptions]="miniatureDisplayOptions"
-        ></my-video-miniature>
-
-        <div *ngIf="getTotalVideosOf(videoChannel)" class="miniature-show-channel">
-          <a i18n [routerLink]="getVideoChannelLink(videoChannel)">SHOW THIS CHANNEL ></a>
+      <div class="videos-overflow-workaround">
+        <div class="videos">
+          <div class="no-results" i18n *ngIf="getTotalVideosOf(videoChannel) === 0">This channel doesn't have any videos.</div>
+
+          <my-video-miniature
+            *ngFor="let video of getVideosOf(videoChannel)"
+            [video]="video" [user]="userMiniature" [displayVideoActions]="true" [displayOptions]="miniatureDisplayOptions"
+          ></my-video-miniature>
+
+          <div *ngIf="getTotalVideosOf(videoChannel)" class="miniature-show-channel">
+            <a i18n [routerLink]="getVideoChannelLink(videoChannel)">SHOW THIS CHANNEL ></a>
+          </div>
         </div>
       </div>
     </div>
index 7870fd03992a3d40e9a01a581e996b977adb7b9e..11ed4c3b1c1463a8d4e5c47238f89155342b044d 100644 (file)
@@ -77,10 +77,8 @@ my-subscribe-button {
   display: flex;
   grid-column: 1 / 3;
   grid-row: 2;
-  margin-top: 30px;
 
   position: relative;
-  overflow: hidden;
 
   my-video-miniature {
     @include margin-right(15px);
@@ -94,6 +92,11 @@ my-subscribe-button {
   }
 }
 
+.videos-overflow-workaround {
+  margin-top: 30px;
+  overflow-x: hidden;
+}
+
 .miniature-show-channel {
   height: 100%;
   position: absolute;