From 7de6afdf542da6968d3f412df9c3318ba19ad229 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 26 Apr 2018 10:22:48 +0200 Subject: [PATCH] Add username near the display name for account pages --- .../src/app/+accounts/accounts.component.html | 5 ++++- .../video-channels.component.html | 4 +++- .../my-account-settings.component.html | 5 ++++- .../my-account-settings.component.scss | 19 ++++++++++++++++--- client/src/sass/include/_mixins.scss | 19 ++++++++++++++++--- 5 files changed, 43 insertions(+), 9 deletions(-) diff --git a/client/src/app/+accounts/accounts.component.html b/client/src/app/+accounts/accounts.component.html index 549676e5a..c20a7e93e 100644 --- a/client/src/app/+accounts/accounts.component.html +++ b/client/src/app/+accounts/accounts.component.html @@ -5,7 +5,10 @@ Avatar
-
{{ account.displayName }}
+
+
{{ account.displayName }}
+
{{ account.name }}
+
{{ account.followersCount }} subscribers
diff --git a/client/src/app/+video-channels/video-channels.component.html b/client/src/app/+video-channels/video-channels.component.html index 098e1eed4..6f14e62a1 100644 --- a/client/src/app/+video-channels/video-channels.component.html +++ b/client/src/app/+video-channels/video-channels.component.html @@ -5,7 +5,9 @@ Avatar
-
{{ videoChannel.displayName }}
+
+
{{ videoChannel.displayName }}
+
{{ videoChannel.followersCount }} subscribers
diff --git a/client/src/app/my-account/my-account-settings/my-account-settings.component.html b/client/src/app/my-account/my-account-settings/my-account-settings.component.html index e655b9d96..0fcc7782e 100644 --- a/client/src/app/my-account/my-account-settings/my-account-settings.component.html +++ b/client/src/app/my-account/my-account-settings/my-account-settings.component.html @@ -2,7 +2,10 @@ Avatar
- +
diff --git a/client/src/app/my-account/my-account-settings/my-account-settings.component.scss b/client/src/app/my-account/my-account-settings/my-account-settings.component.scss index 85079d620..ec0d40b93 100644 --- a/client/src/app/my-account/my-account-settings/my-account-settings.component.scss +++ b/client/src/app/my-account/my-account-settings/my-account-settings.component.scss @@ -11,9 +11,22 @@ } .user-info { - .user-info-username { - font-size: 20px; - font-weight: $font-bold; + .user-info-names { + display: flex; + align-items: center; + + .user-info-display-name { + font-size: 20px; + font-weight: $font-bold; + } + + .user-info-username { + margin-left: 7px; + position: relative; + top: 2px; + font-size: 14px; + color: #777272; + } } .user-info-followers { diff --git a/client/src/sass/include/_mixins.scss b/client/src/sass/include/_mixins.scss index c43bd9803..675cccfeb 100644 --- a/client/src/sass/include/_mixins.scss +++ b/client/src/sass/include/_mixins.scss @@ -344,9 +344,22 @@ flex-direction: column; justify-content: center; - .actor-display-name { - font-size: 23px; - font-weight: $font-bold; + .actor-names { + display: flex; + align-items: center; + + .actor-display-name { + font-size: 23px; + font-weight: $font-bold; + } + + .actor-name { + margin-left: 7px; + position: relative; + top: 3px; + font-size: 14px; + color: #777272; + } } .actor-followers {