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 anavoi
commit 0ee4a2aa4d
4 changed files with 13 additions and 3 deletions

View file

@ -27,6 +27,7 @@ import { UserAvatar } from '../../../components/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 ReactionViewerProps = {
room: Room;
@ -136,7 +137,7 @@ export const ReactionViewer = as<'div', ReactionViewerProps>(
room.roomId,
space?.roomId,
senderId,
event.currentTarget.getBoundingClientRect(),
getMouseEventCords(event.nativeEvent),
'Bottom'
);
}}