From 3a46b7bd189cd8af17903dccd641f5dbdebc0a08 Mon Sep 17 00:00:00 2001 From: lyzno1 Date: Wed, 15 Oct 2025 10:48:38 +0800 Subject: [PATCH] fix(web): restyle workflow online-users avatar stack and dropdown --- .../workflow/header/online-users.tsx | 45 +++++++++++++------ 1 file changed, 32 insertions(+), 13 deletions(-) diff --git a/web/app/components/workflow/header/online-users.tsx b/web/app/components/workflow/header/online-users.tsx index 27abb88747..234d1c9b9a 100644 --- a/web/app/components/workflow/header/online-users.tsx +++ b/web/app/components/workflow/header/online-users.tsx @@ -103,9 +103,17 @@ const OnlineUsers = () => { } return ( -
-
-
+
+
+
{visibleUsers.map((user, index) => { const isCurrentUser = user.user_id === currentUserId const userColor = isCurrentUser ? undefined : getUserColor(user.user_id) @@ -126,7 +134,8 @@ const OnlineUsers = () => { >
0 && '-ml-1.5', !isCurrentUser && 'cursor-pointer transition-transform hover:scale-110', )} style={{ zIndex: visibleUsers.length - index }} @@ -135,8 +144,8 @@ const OnlineUsers = () => {
@@ -157,24 +166,34 @@ const OnlineUsers = () => { onClick={() => setDropdownOpen(prev => !prev)} asChild > -
+
0 && '-ml-1', )} > +{remainingCount}
- +
-
+
{onlineUsers.map((user) => { const isCurrentUser = user.user_id === currentUserId const userColor = isCurrentUser ? undefined : getUserColor(user.user_id)