bodge to fix the hero going under the screen when clicking the bottom item

This commit is contained in:
Shea Duma committed 2026-04-10 06:06:43 +03:00
1 parent f82446a2c6
commit e875fc06cb
1 file changed
+6 -1
+6 -1
View File
@@ -282,7 +282,12 @@ export function MembersDrawer({ room, members }: MembersDrawerProps) {
const btn = evt.currentTarget as HTMLButtonElement;
const userId = btn.getAttribute('data-user-id');
if (!userId) return;
openUserRoomProfile(room.roomId, space?.roomId, userId, btn.getBoundingClientRect(), 'Left');
const cords = btn.getBoundingClientRect();
// BODGE, dependent on menuItem height staying at toRem(40)
cords.y = Math.min(cords.y, window.innerHeight - 42);
openUserRoomProfile(room.roomId, space?.roomId, userId, cords, 'Left');
};
return (