cx(Commit changes to format display of chat item count

This commit is contained in:
dakai 2023-04-02 12:13:43 +08:00
parent fdc899cd7f
commit b60d3fecb9
1 changed files with 4 additions and 1 deletions

View File

@ -91,7 +91,10 @@ export function ChatItem(props: {
onClick={props.onClick}
>
<div className={styles["chat-item-info-collapse"]}>
{Locale.ChatItem.ChatItemCount(props.count).replace(/[^0-9]/g, "")}
{Locale.ChatItem.ChatItemCount(props.count).replace(/[^0-9]/g, "")
.length <= 3
? Locale.ChatItem.ChatItemCount(props.count).replace(/[^0-9]/g, "")
: ":)"}
</div>
<div
className={