- {unreadCount > 0 &&
{shortNumberFormat(unreadCount)}}
+ {unreadCount > 0 && (
+
+
+
+ )}
diff --git a/app/soapbox/features/chats/components/chat_window.js b/app/soapbox/features/chats/components/chat_window.js
index 4d811fe15..e525e3432 100644
--- a/app/soapbox/features/chats/components/chat_window.js
+++ b/app/soapbox/features/chats/components/chat_window.js
@@ -13,9 +13,9 @@ import {
import Avatar from 'soapbox/components/avatar';
import HoverRefWrapper from 'soapbox/components/hover_ref_wrapper';
import IconButton from 'soapbox/components/icon_button';
+import { Counter } from 'soapbox/components/ui';
import { makeGetChat } from 'soapbox/selectors';
import { getAcct } from 'soapbox/utils/accounts';
-import { shortNumberFormat } from 'soapbox/utils/numbers';
import { displayFqn } from 'soapbox/utils/state';
import ChatBox from './chat_box';
@@ -98,9 +98,9 @@ class ChatWindow extends ImmutablePureComponent {
const unreadCount = chat.get('unread');
const unreadIcon = (
-
- {shortNumberFormat(unreadCount)}
-
+
+
+
);
const avatar = (
diff --git a/app/styles/chats.scss b/app/styles/chats.scss
index f41aaf4e9..ba712010b 100644
--- a/app/styles/chats.scss
+++ b/app/styles/chats.scss
@@ -104,25 +104,20 @@
}
.audio-toggle .react-toggle-thumb {
- height: 14px;
- width: 14px;
- border: 1px solid var(--brand-color--med);
+ @apply w-3.5 h-3.5 border border-solid border-primary-400;
}
.audio-toggle .react-toggle {
- height: 16px;
- top: 4px;
+ @apply top-1;
}
.audio-toggle .react-toggle-track {
- height: 16px;
- width: 34px;
- background-color: var(--accent-color);
+ @apply h-4 w-8 bg-accent-500;
}
.audio-toggle .react-toggle-track-check {
- left: 2px;
- bottom: 5px;
+ left: 4px;
+ bottom: 0;
}
.react-toggle--checked .react-toggle-thumb {
@@ -130,8 +125,8 @@
}
.audio-toggle .react-toggle-track-x {
- right: 8px;
- bottom: 5px;
+ right: 5px;
+ bottom: 0;
}
.fa {