More users
This commit is contained in:
@@ -64,7 +64,7 @@ export function RenderFeatures({
|
|||||||
return (
|
return (
|
||||||
users && (
|
users && (
|
||||||
<div className="flex flex-col gap-1.5 px-4 pt-0.5">
|
<div className="flex flex-col gap-1.5 px-4 pt-0.5">
|
||||||
{users.map((pubkey) => {
|
{users.slice(0, 5).map((pubkey) => {
|
||||||
const user = appRef.current?.server?.users[pubkey];
|
const user = appRef.current?.server?.users[pubkey];
|
||||||
if (!user) return null;
|
if (!user) return null;
|
||||||
|
|
||||||
@@ -94,6 +94,11 @@ export function RenderFeatures({
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
|
{users.length > 5 && (
|
||||||
|
<span className="text-xs text-muted-foreground pl-1">
|
||||||
|
and {users.length - 5} others
|
||||||
|
</span>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user