mirror of
https://github.com/danog/telegram-tt.git
synced 2024-11-27 04:45:08 +01:00
Chat: Fix selected unread pinned badge color (#1818)
This commit is contained in:
parent
af4b67baad
commit
8d9ae4b134
@ -54,7 +54,7 @@
|
||||
color: var(--color-white);
|
||||
}
|
||||
|
||||
&.pinned:not(.unread) {
|
||||
&.pinned {
|
||||
color: var(--color-pinned);
|
||||
background: transparent;
|
||||
width: 1.5rem;
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user