two digits and up smaller notif bubble txt
This commit is contained in:
parent
eac7e100cc
commit
554ca1a4f4
2 changed files with 11 additions and 1 deletions
|
@ -22,7 +22,13 @@ export default function NotificationHeaderButton(props: Props) {
|
|||
'notification__bubble--inline': inline,
|
||||
})}
|
||||
>
|
||||
<span className="notification__count">{unreadCount > 20 ? '20+' : unreadCount}</span>
|
||||
<span
|
||||
className={classnames('notification__count', {
|
||||
'notification__bubble--small': unreadCount > 9,
|
||||
})}
|
||||
>
|
||||
{unreadCount > 20 ? '20+' : unreadCount}
|
||||
</span>
|
||||
</span>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -175,6 +175,10 @@ $contentMaxWidth: 35rem;
|
|||
justify-content: center;
|
||||
}
|
||||
|
||||
.notification__bubble--small {
|
||||
font-size: var(--font-xsmall);
|
||||
}
|
||||
|
||||
.notification__bubble--inline {
|
||||
@extend .notification__bubble;
|
||||
top: 0.75rem;
|
||||
|
|
Loading…
Add table
Reference in a new issue