mirror of
https://github.com/SableClient/Sable.git
synced 2026-12-06 00:32:26 -08:00
bodge to fix the hero going under the screen when clicking the bottom item
This commit is contained in:
1 parent
f82446a2c6
commit
e875fc06cb
1 file changed
+6
-1
@@ -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 (
|
||||
|
||||
Reference in new issue
Block a user