From e875fc06cb19e6f3e9a389362edec1ff388b6179 Mon Sep 17 00:00:00 2001 From: Shea Duma Date: Fri, 10 Apr 2026 06:06:43 +0300 Subject: [PATCH] bodge to fix the hero going under the screen when clicking the bottom item --- src/app/features/room/MembersDrawer.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/app/features/room/MembersDrawer.tsx b/src/app/features/room/MembersDrawer.tsx index 0a74acfda..2f4849288 100644 --- a/src/app/features/room/MembersDrawer.tsx +++ b/src/app/features/room/MembersDrawer.tsx @@ -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 (