mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-05 06:50:28 +03:00
Open user profile at around mouse anchor (#2440)
This commit is contained in:
parent
544a06964d
commit
63fa60e7f4
4 changed files with 13 additions and 3 deletions
|
|
@ -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'
|
||||
);
|
||||
}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue