Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix account channel overflow

Chocobozzzfff77ba23191
diff --git a/client/src/app/+accounts/account-video-channels/account-video-channels.component.html b/client/src/app/+accounts/account-video-channels/account-video-channels.component.html
index 43dbbebb3b..e9c8179b77 100644
--- a/client/src/app/+accounts/account-video-channels/account-video-channels.component.html
+++ b/client/src/app/+accounts/account-video-channels/account-video-channels.component.html
@@ -15,7 +15,11 @@
<my-subscribe-button [videoChannel]="videoChannel"></my-subscribe-button>
</div>
- <my-video-miniature *ngFor="let video of getVideosOf(videoChannel)" [video]="video" [user]="user" [displayVideoActions]="false"></my-video-miniature>
+ <div *ngIf="getVideosOf(videoChannel)" class="videos">
+ <div class="no-results" i18n *ngIf="getVideosOf(videoChannel).length === 0">This channel does not have videos.</div>
+
+ <my-video-miniature *ngFor="let video of getVideosOf(videoChannel)" [video]="video" [user]="user" [displayVideoActions]="false"></my-video-miniature>
+ </div>
</div>
</div>
</div>
diff --git a/client/src/app/+accounts/account-video-channels/account-video-channels.component.scss b/client/src/app/+accounts/account-video-channels/account-video-channels.component.scss
index d9f78bdcdd..98931f0c25 100644
--- a/client/src/app/+accounts/account-video-channels/account-video-channels.component.scss
+++ b/client/src/app/+accounts/account-video-channels/account-video-channels.component.scss
@@ -9,9 +9,20 @@
.section {
@include miniature-rows;
+ overflow: visible; // For the subscribe dropdown
padding-top: 0 !important;
.section-title {
align-items: center;
}
+
+ .videos {
+ overflow: hidden;
+
+ .no-results {
+ height: 50px;
+ }
+ }
}
+
+
diff --git a/client/src/app/+accounts/account-video-channels/account-video-channels.component.ts b/client/src/app/+accounts/account-video-channels/account-video-channels.component.ts
index ee3b5f8e4b..a8d4237e81 100644
--- a/client/src/app/+accounts/account-video-channels/account-video-channels.component.ts
+++ b/client/src/app/+accounts/account-video-channels/account-video-channels.component.ts
@@ -79,7 +79,7 @@ export class AccountVideoChannelsComponent implements OnInit, OnDestroy {
}
getVideosOf (videoChannel: VideoChannel) {
- return this.videos[ videoChannel.id ] || []
+ return this.videos[ videoChannel.id ]
}
onNearOfBottom () {