More users

This commit is contained in:
2026-08-28 02:57:30 +02:00
parent 5b964392b9
commit 853f7bc84b
+6 -1
View File
@@ -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>
) )
); );