From 33f5edb4197fa73430e1f7135cbcbecec46d0e0b Mon Sep 17 00:00:00 2001
From: Jannis Braun <151788261+TheZwiss@users.noreply.github.com>
Date: Fri, 3 Apr 2026 00:46:03 +0200
Subject: [PATCH] fix(web): use divide-y for flat friend row separators
---
.../web/src/components/chat/FriendsPage.tsx | 24 +++++++++++--------
1 file changed, 14 insertions(+), 10 deletions(-)
diff --git a/packages/web/src/components/chat/FriendsPage.tsx b/packages/web/src/components/chat/FriendsPage.tsx
index 4b7cb614..cdd9ac54 100644
--- a/packages/web/src/components/chat/FriendsPage.tsx
+++ b/packages/web/src/components/chat/FriendsPage.tsx
@@ -98,9 +98,11 @@ export function FriendsPage({ mobile }: FriendsPageProps) {
No one's online right now.
) : (
- onlineFriends.map(friend => (
- removeFriend(friend.id)} onDm={() => handleOpenDm(friend.id, friend.homeUserId ?? undefined, friend.homeInstance)} />
- ))
+
+ {onlineFriends.map(friend => (
+ removeFriend(friend.id)} onDm={() => handleOpenDm(friend.id, friend.homeUserId ?? undefined, friend.homeInstance)} />
+ ))}
+
)}
);
@@ -116,9 +118,11 @@ export function FriendsPage({ mobile }: FriendsPageProps) {
No friends yet — add someone!
) : (
- friends.map(friend => (
- removeFriend(friend.id)} onDm={() => handleOpenDm(friend.id, friend.homeUserId ?? undefined, friend.homeInstance)} />
- ))
+
+ {friends.map(friend => (
+ removeFriend(friend.id)} onDm={() => handleOpenDm(friend.id, friend.homeUserId ?? undefined, friend.homeInstance)} />
+ ))}
+
)}
);
@@ -134,7 +138,7 @@ export function FriendsPage({ mobile }: FriendsPageProps) {
No pending requests — Nori is napping.
) : (
- <>
+
{pendingIncoming.map(req => (
cancelFriendRequest(req.id)}
/>
))}
- >
+
)}
);
@@ -890,7 +894,7 @@ function FriendItem({ friend, onRemove, onDm }: { friend: TaggedFriend, onRemove
const { baseName: friendBaseName } = parseFederatedUsername(friend.username);
const friendDisplayName = friend.displayName ?? friendBaseName;
return (
-
+
@@ -944,7 +948,7 @@ function RequestItem({ request, type, onAccept, onDecline, onCancel }: {
const reqDisplayName = user.displayName ?? reqBaseName;
return (
-