cx(Commit changes to format display of chat item count
This commit is contained in:
parent
fdc899cd7f
commit
b60d3fecb9
|
@ -91,7 +91,10 @@ export function ChatItem(props: {
|
||||||
onClick={props.onClick}
|
onClick={props.onClick}
|
||||||
>
|
>
|
||||||
<div className={styles["chat-item-info-collapse"]}>
|
<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>
|
||||||
<div
|
<div
|
||||||
className={
|
className={
|
||||||
|
|
Loading…
Reference in New Issue