From 62c727e2534b084f480159ca4790a17455594326 Mon Sep 17 00:00:00 2001 From: elhombretecla Date: Wed, 25 Nov 2020 10:47:37 +0100 Subject: [PATCH] :sparkles: Add new comments placeholder --- frontend/resources/locales.json | 2 +- .../resources/styles/main/partials/comments.scss | 14 +++++++++++++- frontend/src/app/main/ui/dashboard/comments.cljs | 1 + 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/frontend/resources/locales.json b/frontend/resources/locales.json index 1954e34091..7cdd3bdaa7 100644 --- a/frontend/resources/locales.json +++ b/frontend/resources/locales.json @@ -1426,7 +1426,7 @@ "labels.no-comments-available" : { "used-in" : [ "src/app/main/ui/dashboard/comments.cljs:104" ], "translations" : { - "en" : "No comments" + "en" : "You have no pending comment notifications" } }, "labels.old-password" : { diff --git a/frontend/resources/styles/main/partials/comments.scss b/frontend/resources/styles/main/partials/comments.scss index e249d52f53..8c903dfad1 100644 --- a/frontend/resources/styles/main/partials/comments.scss +++ b/frontend/resources/styles/main/partials/comments.scss @@ -424,7 +424,19 @@ } .thread-groups-placeholder { - padding: 16px; + align-items: center; + display: flex; + flex-direction: column; + font-size: $fs14; + padding: $big; + text-align: center; + + svg { + fill: $color-gray-20; + height: 24px; + margin-bottom: $small; + width: 24px; + } } .thread-group { diff --git a/frontend/src/app/main/ui/dashboard/comments.cljs b/frontend/src/app/main/ui/dashboard/comments.cljs index 81aeb1c1c5..dfc404556b 100644 --- a/frontend/src/app/main/ui/dashboard/comments.cljs +++ b/frontend/src/app/main/ui/dashboard/comments.cljs @@ -92,4 +92,5 @@ :key (:page-id tgroup)}]])] [:div.thread-groups-placeholder + i/chat (tr "labels.no-comments-available")])]]]))