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