From: Chocobozzz Date: Tue, 11 Jun 2019 09:28:26 +0000 (+0200) Subject: Fix account channel overflow X-Git-Tag: v1.4.0-rc.1~170 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=fff77ba23191f9bca959d5989a1f1df331dbac0b;p=github%2FChocobozzz%2FPeerTube.git Fix account channel overflow --- 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 () {