Chat: Fix selected unread pinned badge color (#1818)

This commit is contained in:
Alexander Zinchuk 2022-04-08 20:59:33 +02:00
parent af4b67baad
commit 8d9ae4b134
2 changed files with 4 additions and 3 deletions

View File

@ -54,7 +54,7 @@
color: var(--color-white);
}
&.pinned:not(.unread) {
&.pinned {
color: var(--color-pinned);
background: transparent;
width: 1.5rem;

View File

@ -17,11 +17,12 @@ type OwnProps = {
const Badge: FC<OwnProps> = ({ chat, isPinned, isMuted }) => {
const isShown = Boolean(chat.unreadCount || chat.hasUnreadMark || isPinned);
const isUnread = Boolean(chat.unreadCount || chat.hasUnreadMark);
const className = buildClassName(
'Badge',
isMuted && 'muted',
isPinned && 'pinned',
Boolean(chat.unreadCount || chat.hasUnreadMark) && 'unread',
!isUnread && isPinned && 'pinned',
isUnread && 'unread',
);
function renderContent() {