From 22063ae3c8c648eafdd954553e54a3915e9203ef Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 27 Aug 2020 16:41:24 -0500 Subject: [PATCH] Chats: replace avatar with unread counter --- app/soapbox/features/chats/components/chat_panes.js | 2 +- app/soapbox/features/chats/components/chat_window.js | 6 ++++-- app/styles/chats.scss | 6 ++++++ 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/app/soapbox/features/chats/components/chat_panes.js b/app/soapbox/features/chats/components/chat_panes.js index 321c0796d..3ddf4ab58 100644 --- a/app/soapbox/features/chats/components/chat_panes.js +++ b/app/soapbox/features/chats/components/chat_panes.js @@ -59,10 +59,10 @@ class ChatPanes extends ImmutablePureComponent { const mainWindowPane = (
+ {unreadCount > 0 && {shortNumberFormat(unreadCount)}} - {unreadCount > 0 && {shortNumberFormat(unreadCount)}}
- + {unreadCount > 0 + ? {shortNumberFormat(unreadCount)} + : + } - {unreadCount > 0 && {shortNumberFormat(unreadCount)}}
diff --git a/app/styles/chats.scss b/app/styles/chats.scss index 410769b8d..cb498e628 100644 --- a/app/styles/chats.scss +++ b/app/styles/chats.scss @@ -71,6 +71,12 @@ .icon-with-badge__badge { position: static; pointer-events: none; + width: 18px; + height: 18px; + display: flex; + align-items: center; + justify-content: center; + margin-right: 7px; } }