mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-31 21:01:33 +02:00
[web] Support multi-byte characters in online user name (#26882)
GitOrigin-RevId: 9547ed7df13fcf8bb51ddd8c3f59167c2099e4e6
This commit is contained in:
committed by
Copybot
parent
78b386b521
commit
56998dfcd6
@@ -86,9 +86,10 @@ const OnlineUserWidget = ({
|
||||
|
||||
const OnlineUserCircle = ({ user }: { user: OnlineUser }) => {
|
||||
const backgroundColor = getBackgroundColorForUserId(user.user_id)
|
||||
const [character] = [...user.name]
|
||||
return (
|
||||
<span className="online-user-circle" style={{ backgroundColor }}>
|
||||
{user.name.charAt(0)}
|
||||
{character}
|
||||
</span>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user