From 1a4710914432b44115b185cec1883fdf409aef1d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 31 Aug 2018 14:26:51 +0200 Subject: Add channel avatar to overviews --- .../app/videos/video-list/video-overview.component.html | 8 ++++++-- .../app/videos/video-list/video-overview.component.scss | 14 ++++++++++++++ .../src/app/videos/video-list/video-overview.component.ts | 4 ++++ 3 files changed, 24 insertions(+), 2 deletions(-) (limited to 'client') diff --git a/client/src/app/videos/video-list/video-overview.component.html b/client/src/app/videos/video-list/video-overview.component.html index 9282dd59c..84a4c70ee 100644 --- a/client/src/app/videos/video-list/video-overview.component.html +++ b/client/src/app/videos/video-list/video-overview.component.html @@ -22,9 +22,13 @@ -
+
diff --git a/client/src/app/videos/video-list/video-overview.component.scss b/client/src/app/videos/video-list/video-overview.component.scss index 8d66cf80a..73b6d2e53 100644 --- a/client/src/app/videos/video-list/video-overview.component.scss +++ b/client/src/app/videos/video-list/video-overview.component.scss @@ -19,4 +19,18 @@ color: #000; } +} + +.channel { + .section-title a { + display: flex; + width: fit-content; + align-items: center; + + img { + @include avatar(30px); + + margin-right: 10px; + } + } } \ No newline at end of file diff --git a/client/src/app/videos/video-list/video-overview.component.ts b/client/src/app/videos/video-list/video-overview.component.ts index c758e115c..2c6054721 100644 --- a/client/src/app/videos/video-list/video-overview.component.ts +++ b/client/src/app/videos/video-list/video-overview.component.ts @@ -53,4 +53,8 @@ export class VideoOverviewComponent implements OnInit { buildVideoChannelBy (object: { videos: Video[] }) { return object.videos[0].byVideoChannel } + + buildVideoChannelAvatarUrl (object: { videos: Video[] }) { + return object.videos[0].videoChannelAvatarUrl + } } -- cgit v1.2.3