fix(ui): DmMemberRow anchors profile popout to row bounds (matches MemberSidebar)

This commit is contained in:
Jannis Braun
2026-05-10 20:18:05 +02:00
parent c21bc8078b
commit b34caf5f2d
3 changed files with 122 additions and 4 deletions
@@ -89,6 +89,10 @@ export function DmRosterPanel() {
const handleMenuAction = async (action: DmMemberRowAction, member: User) => {
if (action === 'profile') {
// Profile popout is anchored by DmMemberRow itself (matches the
// MemberSidebar pattern). This branch only fires on the unlikely
// fallback path where the row couldn't compute its bounding rect —
// in that case, anchor to the top-left of the roster column.
openUserProfile(member, { top: 100, left: 100 });
return;
}