imnyang/cinny
Watch
1
0
Fork
You've already forked cinny
0

Open user profile at around mouse anchor (#2440)

This commit is contained in:
Ajay Bura 2025-08-16 17:04:46 +05:30 • committed by GitHub
commit 63fa60e7f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -23,6 +23,7 @@ import { UserAvatar } from '../user-avatar';
import { useMediaAuthentication } from '../../hooks/useMediaAuthentication';
import { useOpenUserRoomProfile } from '../../state/hooks/userRoomProfile';
import { useSpaceOptionally } from '../../hooks/useSpace';
import { getMouseEventCords } from '../../utils/dom';
export type EventReadersProps = {
room: Room;
@ -83,7 +84,7 @@ export const EventReaders = as<'div', EventReadersProps>(
room.roomId,
space?.roomId,
readerId,
event.currentTarget.getBoundingClientRect(),
getMouseEventCords(event.nativeEvent),
'Bottom'
);
}}