From 900f7820814b95b07ef0bcac04036a95abfbe060 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 26 Mar 2021 15:53:18 +0100 Subject: Redesign account's channels page --- .../video-channel-videos/video-channel-videos.component.ts | 13 ++++++++++++- .../src/app/+video-channels/video-channels.component.html | 8 ++++---- .../src/app/+video-channels/video-channels.component.scss | 14 ++++++++------ 3 files changed, 24 insertions(+), 11 deletions(-) (limited to 'client/src/app/+video-channels') diff --git a/client/src/app/+video-channels/video-channel-videos/video-channel-videos.component.ts b/client/src/app/+video-channels/video-channel-videos/video-channel-videos.component.ts index 803651505..5e2af1b92 100644 --- a/client/src/app/+video-channels/video-channel-videos/video-channel-videos.component.ts +++ b/client/src/app/+video-channels/video-channel-videos/video-channel-videos.component.ts @@ -5,7 +5,7 @@ import { ActivatedRoute, Router } from '@angular/router' import { AuthService, ConfirmService, LocalStorageService, Notifier, ScreenService, ServerService, UserService } from '@app/core' import { immutableAssign } from '@app/helpers' import { VideoChannel, VideoChannelService, VideoService } from '@app/shared/shared-main' -import { AbstractVideoList } from '@app/shared/shared-video-miniature' +import { AbstractVideoList, MiniatureDisplayOptions } from '@app/shared/shared-video-miniature' import { VideoFilter } from '@shared/models' @Component({ @@ -22,6 +22,17 @@ export class VideoChannelVideosComponent extends AbstractVideoList implements On filter: VideoFilter = null + displayOptions: MiniatureDisplayOptions = { + date: true, + views: true, + by: false, + avatar: false, + privacyLabel: true, + privacyText: false, + state: false, + blacklistInfo: false + } + private videoChannel: VideoChannel private videoChannelSub: Subscription diff --git a/client/src/app/+video-channels/video-channels.component.html b/client/src/app/+video-channels/video-channels.component.html index d1eb15dff..9f9c1f2ca 100644 --- a/client/src/app/+video-channels/video-channels.component.html +++ b/client/src/app/+video-channels/video-channels.component.html @@ -2,17 +2,17 @@
- + Manage channel - +
- Owner account avatar +

{{ videoChannel.ownerAccount.displayName }}

@@ -36,7 +36,7 @@
- Avatar + Avatar
diff --git a/client/src/app/+video-channels/video-channels.component.scss b/client/src/app/+video-channels/video-channels.component.scss index f5547b4e9..fb71844bd 100644 --- a/client/src/app/+video-channels/video-channels.component.scss +++ b/client/src/app/+video-channels/video-channels.component.scss @@ -4,7 +4,7 @@ @import '_miniature'; .root { - --myGlobalPadding: 60px; + --myGlobalTopPadding: 60px; --myChannelImgMargin: 30px; --myFontSize: 16px; --myGreyChannelFontSize: 16px; @@ -16,17 +16,19 @@ } .links { - @include fluid-videos-miniature-layout; + @include fluid-videos-miniature-margins; } .channel-info { + @include fluid-videos-miniature-margins(false, 15px); + display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; background-color: pvar(--channelBackgroundColor); margin-bottom: 45px; - padding: var(--myGlobalPadding) var(--myGlobalPadding) 0 var(--myGlobalPadding); + padding-top: var(--myGlobalTopPadding); font-size: var(--myFontSize); } @@ -146,7 +148,7 @@ @media screen and (max-width: 1100px) { .root { - --myGlobalPadding: 45px; + --myGlobalTopPadding: 45px; --myChannelImgMargin: 15px; } @@ -184,7 +186,7 @@ display: block; width: 100%; border-bottom: 2px solid $separator-border-color; - padding: var(--myGlobalPadding) 45px; + padding: var(--myGlobalTopPadding) 45px; margin-bottom: 60px; } @@ -223,7 +225,7 @@ @media screen and (max-width: $mobile-view) { .root { - --myGlobalPadding: 15px; + --myGlobalTopPadding: 15px; --myFontSize: 14px; --myGreyChannelFontSize: 13px; --myGreyOwnerFontSize: 13px; -- cgit v1.2.3