Fix WhosWatching Text
Some checks failed
Release / Build Equicord (push) Has been cancelled
Sync to Codeberg / Sync Codeberg and Github (push) Has been cancelled
Test / Test (push) Has been cancelled

This commit is contained in:
thororen1234 2025-03-15 21:37:00 -04:00
parent edacc7efa0
commit dc114666a8
No known key found for this signature in database

View file

@ -118,39 +118,37 @@ export default definePlugin({
return ( return (
<> <>
<div {...props}>{props.children}</div> <div {...props}>{props.children}</div>
<div className={classes(cl("spectators_panel"), Margins.top8)}> <div className={classes(cl("spectators_panel"), Margins.top8)} style={{ marginLeft: 8 }}>
<Forms.FormTitle tag="h3" style={{ marginTop: 8, marginBottom: 0, textTransform: "uppercase" }}> <Forms.FormTitle tag="h3" style={{ marginTop: 8, marginBottom: 0, textTransform: "uppercase" }}>
{getIntlMessage("SPECTATORS", { numViewers: userIds.length })} {getIntlMessage("SPECTATORS", { numViewers: userIds.length })}
</Forms.FormTitle> </Forms.FormTitle>
<div style={{ marginLeft: 8 }}> {users.length ?
{users.length ? <>
<> <UserSummaryItem
<UserSummaryItem users={users}
users={users} count={userIds.length}
count={userIds.length} renderIcon={false}
renderIcon={false} max={12}
max={12} showDefaultAvatarsForNullUsers
showDefaultAvatarsForNullUsers renderMoreUsers={renderMoreUsers}
renderMoreUsers={renderMoreUsers} renderUser={(user: User, index: number) => (
renderUser={(user: User, index: number) => ( <Clickable
<Clickable key={index}
key={index} className={AvatarStyles.clickableAvatar}
className={AvatarStyles.clickableAvatar} onClick={() => openUserProfile(user.id)}
onClick={() => openUserProfile(user.id)} >
> <img
<img className={AvatarStyles.avatar}
className={AvatarStyles.avatar} src={user.getAvatarURL(void 0, 80, true)}
src={user.getAvatarURL(void 0, 80, true)} alt={user.username}
alt={user.username} title={user.username}
title={user.username} />
/> </Clickable>
</Clickable> )}
)} />
/> </>
</> : <Forms.FormText>No spectators</Forms.FormText>
: <Forms.FormText>No spectators</Forms.FormText> }
}
</div>
</div> </div>
</> </>
); );