mirror of
https://github.com/Equicord/Equicord.git
synced 2025-04-01 13:11:57 -04:00
Fix WhosWatching Text
This commit is contained in:
parent
edacc7efa0
commit
dc114666a8
1 changed files with 28 additions and 30 deletions
|
@ -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>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue