From 439b6b7bfb5243f016135ccbd13a3491741cf809 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 21 Mar 2022 11:40:25 +0100 Subject: Lazy load charts when listing my channels --- .../+my-video-channels/my-video-channels.component.html | 12 ++++++++++-- .../+my-video-channels/my-video-channels.component.scss | 7 ++++--- 2 files changed, 14 insertions(+), 5 deletions(-) (limited to 'client/src/app/+my-library') diff --git a/client/src/app/+my-library/+my-video-channels/my-video-channels.component.html b/client/src/app/+my-library/+my-video-channels/my-video-channels.component.html index c1ded0f6d..89327b065 100644 --- a/client/src/app/+my-library/+my-video-channels/my-video-channels.component.html +++ b/client/src/app/+my-library/+my-video-channels/my-video-channels.component.html @@ -41,8 +41,16 @@ -
- +
+
+ + + +
diff --git a/client/src/app/+my-library/+my-video-channels/my-video-channels.component.scss b/client/src/app/+my-library/+my-video-channels/my-video-channels.component.scss index 484355967..ab80f3d01 100644 --- a/client/src/app/+my-library/+my-video-channels/my-video-channels.component.scss +++ b/client/src/app/+my-library/+my-video-channels/my-video-channels.component.scss @@ -62,9 +62,10 @@ my-edit-button { min-width: 190px; } -::ng-deep .chartjs-render-monitor { - position: relative; - top: 1px; +.chart-container { + // Sync these values with the template + width: 40vw; + height: 100px; } .video-channels-header { -- cgit v1.2.3