fix UserAvatarList background color

This commit is contained in:
hjlarry
2025-09-19 12:07:07 +08:00
parent 10e36d2355
commit b442ba8b2b
4 changed files with 29 additions and 17 deletions

View File

@ -50,7 +50,7 @@ const useAvatarUrls = (users: any[]) => {
const OnlineUsers = () => {
const appId = useStore(s => s.appId)
const { onlineUsers, cursors } = useCollaboration(appId)
const { onlineUsers, cursors } = useCollaboration(appId as string)
const { userProfile } = useAppContext()
const reactFlow = useReactFlow()
const [dropdownOpen, setDropdownOpen] = useState(false)

View File

@ -140,7 +140,7 @@ const BasePanel: FC<BasePanelProps> = ({
return Object.values(presence)
.filter(viewer => viewer.userId && viewer.userId !== currentUserPresence.userId)
.map(viewer => ({
id: viewer.clientId,
id: viewer.userId,
name: viewer.username,
avatar_url: viewer.avatar || null,
}))

View File

@ -93,7 +93,7 @@ const BaseNode: FC<BaseNodeProps> = ({
return Object.values(presence)
.filter(viewer => viewer.userId && viewer.userId !== currentUserPresence.userId)
.map(viewer => ({
id: viewer.clientId,
id: viewer.userId,
name: viewer.username,
avatar_url: viewer.avatar || null,
}))