From 079456aecce8ca5227724398b4d0582f2ea49c8a Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 26 Jan 2020 19:56:01 +0100 Subject: [PATCH] WIP: add remove groupAdmin --- src/app/components/feed/feed.component.html | 2 +- src/app/components/group/group.component.html | 30 +++++++++++++++++++ src/app/components/group/group.component.sass | 16 +++++++--- 3 files changed, 43 insertions(+), 5 deletions(-) diff --git a/src/app/components/feed/feed.component.html b/src/app/components/feed/feed.component.html index 3d31915..b3c31e9 100644 --- a/src/app/components/feed/feed.component.html +++ b/src/app/components/feed/feed.component.html @@ -24,7 +24,7 @@ - {{content.value.length}} / 2048 + {{content.value.length}} / 2048
diff --git a/src/app/components/group/group.component.html b/src/app/components/group/group.component.html index 652f47b..1196c44 100644 --- a/src/app/components/group/group.component.html +++ b/src/app/components/group/group.component.html @@ -149,6 +149,36 @@
+ + + + Admins + + +
+ + +
+ + + + +
+
+ +
+ {{admin.username}} + {{admin.handle}} +
+
+
+
diff --git a/src/app/components/group/group.component.sass b/src/app/components/group/group.component.sass index 6046785..6b9947d 100644 --- a/src/app/components/group/group.component.sass +++ b/src/app/components/group/group.component.sass @@ -107,13 +107,21 @@ $mat-card-header-size: 100px !default margin-top: 0.5em margin-bottom: 0.5em - .profile-picture - background-image: url(https://material.angular.io/assets/img/examples/shiba1.jpg) - background-size: cover - .profile-picture:hover cursor: pointer +$mat-card-header-size-small: 54px !default +.profile-picture-small + height: $mat-card-header-size-small + width: $mat-card-header-size-small + border-radius: 50% + flex-shrink: 0 + background-size: cover + transition-duration: 0.5s + z-index: 10 + object-fit: cover + + .pointer cursor: pointer