From 733dbc535d5fecdaba9e05feb8923bc754920525 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 31 Mar 2021 08:59:52 +0200 Subject: Channel/account page redesign feedbacks Fix owner default avatar Semi bold orange inverted button Max width account description Increase account's channels padding Use owner avatar/display name links Move "view owner account" link on mobile Try to always display channel in video miniatures Add small border radius for channel's avatar Use main foreground color for the magnifying glass --- .../account-video-channels/account-video-channels.component.html | 2 +- .../account-video-channels/account-video-channels.component.scss | 6 +++++- client/src/app/+accounts/accounts.component.html | 2 +- client/src/app/+accounts/accounts.component.scss | 2 ++ client/src/app/+accounts/accounts.component.ts | 4 ++++ 5 files changed, 13 insertions(+), 3 deletions(-) (limited to 'client/src/app/+accounts') 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 0b22e7526..19a4b3c9c 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 @@ -22,7 +22,7 @@
{videoChannel.followersCount, plural, =1 {1 subscriber} other {{{ videoChannel.followersCount }} subscribers}}
- {getTotalVideosOf(videoChannel), splural, =1 {1 videos} other {{{ getTotalVideosOf(videoChannel) }} videos}} + {getTotalVideosOf(videoChannel), plural, =1 {1 videos} other {{{ getTotalVideosOf(videoChannel) }} 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 ca4c35cb4..8f1e9deb5 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,7 +9,7 @@ .channel { max-width: $max-channels-width; background-color: pvar(--channelBackgroundColor); - padding: 15px; + padding: 30px; margin: 30px 0; @@ -120,6 +120,10 @@ my-subscribe-button { } @media screen and (max-width: $mobile-view) { + .channel { + padding: 15px; + } + .channel-avatar-row { grid-template-columns: auto auto auto 1fr; diff --git a/client/src/app/+accounts/accounts.component.html b/client/src/app/+accounts/accounts.component.html index e149d0bc6..03d083bb6 100644 --- a/client/src/app/+accounts/accounts.component.html +++ b/client/src/app/+accounts/accounts.component.html @@ -52,7 +52,7 @@
Account created on {{ account.createdAt | date }}
-
diff --git a/client/src/app/+accounts/accounts.component.scss b/client/src/app/+accounts/accounts.component.scss index 6a51dd038..80f23ba6f 100644 --- a/client/src/app/+accounts/accounts.component.scss +++ b/client/src/app/+accounts/accounts.component.scss @@ -62,6 +62,8 @@ my-user-moderation-dropdown, .description { grid-column: 1 / 3; + max-width: 1000px; + word-break: break-word; } .created-at { diff --git a/client/src/app/+accounts/accounts.component.ts b/client/src/app/+accounts/accounts.component.ts index abee0b9bb..e80314130 100644 --- a/client/src/app/+accounts/accounts.component.ts +++ b/client/src/app/+accounts/accounts.component.ts @@ -147,6 +147,10 @@ export class AccountsComponent implements OnInit, OnDestroy { return this.videoChannels.length !== 0 } + hasShowMoreDescription () { + return !this.accountDescriptionExpanded && this.accountDescriptionHTML.length > 100 + } + private async onAccount (account: Account) { this.accountFollowerTitle = $localize`${account.followersCount} direct account followers` -- cgit v1.2.3