From df8914c9a2d6dbb435460b9e252a771cac47880b Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Fri, 13 Mar 2020 01:29:11 +0100 Subject: More modern avatar upload, quota represented with progress bars --- .../shared/actor-avatar-info.component.html | 13 +++--- .../shared/actor-avatar-info.component.scss | 48 ++++++++++++++-------- 2 files changed, 39 insertions(+), 22 deletions(-) (limited to 'client/src/app/+my-account/shared') diff --git a/client/src/app/+my-account/shared/actor-avatar-info.component.html b/client/src/app/+my-account/shared/actor-avatar-info.component.html index 8bdff2f5a..b992d0ebd 100644 --- a/client/src/app/+my-account/shared/actor-avatar-info.component.html +++ b/client/src/app/+my-account/shared/actor-avatar-info.component.html @@ -2,6 +2,13 @@
Avatar +
+
+ + +
+
+
{{ actor.displayName }}
@@ -10,10 +17,4 @@
{{ actor.followersCount }} subscribers
- -
- Change the avatar - -
-
(extensions: {{ avatarExtensions }}, max size: {{ maxAvatarSize | bytes }})
\ No newline at end of file diff --git a/client/src/app/+my-account/shared/actor-avatar-info.component.scss b/client/src/app/+my-account/shared/actor-avatar-info.component.scss index 86f8108b9..5a66ecfd2 100644 --- a/client/src/app/+my-account/shared/actor-avatar-info.component.scss +++ b/client/src/app/+my-account/shared/actor-avatar-info.component.scss @@ -5,12 +5,42 @@ display: flex; img { - @include avatar(50px); + @include avatar(100px); margin-right: 15px; } + .actor-img-edit-container { + position: relative; + width: 0; + + .actor-img-edit-button { + @include peertube-button-file(21px); + @include button-with-icon(19px); + + margin-top: 10px; + margin-bottom: 5px; + border-radius: 50%; + top: 55px; + right: 45px; + cursor: pointer; + + input { + width: 30px; + height: 30px; + } + + my-global-icon { + right: 7px; + } + } + } + .actor-info { + justify-content: center; + display: inline-flex; + flex-direction: column; + .actor-info-names { display: flex; align-items: center; @@ -35,21 +65,7 @@ .actor-info-followers { font-size: 15px; + padding-bottom: .5rem; } } } - -.button-file { - @include peertube-button-file(160px); - - margin-top: 10px; - margin-bottom: 5px; -} - -.file-max-size { - display: inline-block; - font-size: 13px; - - position: relative; - top: -10px; -} -- cgit v1.2.3