From 5532ef67ba0f040ee943e3b59370c679403c587f Mon Sep 17 00:00:00 2001 From: Syndamia Date: Tue, 2 Feb 2021 09:43:25 +0200 Subject: Added a comment count indicator in posts --- .../src/app/components/post/post.component.css | 16 +++++++++++++++- .../src/app/components/post/post.component.html | 14 ++++++++++++-- src/DevHive.Angular/src/assets/images/comment.png | Bin 0 -> 31366 bytes 3 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 src/DevHive.Angular/src/assets/images/comment.png (limited to 'src/DevHive.Angular') diff --git a/src/DevHive.Angular/src/app/components/post/post.component.css b/src/DevHive.Angular/src/app/components/post/post.component.css index 1ae5d8f..73030b2 100644 --- a/src/DevHive.Angular/src/app/components/post/post.component.css +++ b/src/DevHive.Angular/src/app/components/post/post.component.css @@ -50,9 +50,23 @@ hr { word-break: break-all; } -.timestamp { +.bottom-post { font-size: .5em; color: gray; + display: flex; + align-items: center; +} + +.separator { + margin: 0 .5em; +} + +.comment-count { + font-size: 1em; +} + +.comment-count > img { + height: .8em; } .message:hover, .timestamp:hover { diff --git a/src/DevHive.Angular/src/app/components/post/post.component.html b/src/DevHive.Angular/src/app/components/post/post.component.html index ea81bdf..c559c25 100644 --- a/src/DevHive.Angular/src/app/components/post/post.component.html +++ b/src/DevHive.Angular/src/app/components/post/post.component.html @@ -16,9 +16,19 @@
{{ post.message }}
-
- {{ timeCreated }} +
+
+ {{ timeCreated }} +
+
+ ║ +
+
+ {{ post.comments.length }} + +
+