From fff77ba23191f9bca959d5989a1f1df331dbac0b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 11 Jun 2019 11:28:26 +0200 Subject: Fix account channel overflow --- .../account-video-channels.component.html | 6 +++++- .../account-video-channels.component.scss | 11 +++++++++++ .../account-video-channels.component.ts | 2 +- 3 files changed, 17 insertions(+), 2 deletions(-) (limited to 'client') 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 43dbbebb3..e9c8179b7 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 @@ - +
+
This channel does not have videos.
+ + +
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 d9f78bdcd..98931f0c2 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 ee3b5f8e4..a8d4237e8 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 () { -- cgit v1.2.3