Use avatar tootltip for the title rather than the whole button

It's more performant and feels less glitchy than the button tooltip moving around when you scroll.
This commit is contained in:
David Langley 2025-05-08 00:18:32 +01:00
parent b83a86532b
commit e567d8039c
2 changed files with 1 additions and 4 deletions

View File

@ -31,7 +31,7 @@ export function RoomMemberTileView(props: IProps): JSX.Element {
size="32px"
name={member.name}
idName={member.userId}
title={member.displayUserId}
title={vm.title}
url={member.avatarThumbnailUrl}
altText={_t("common|user_avatar")}
/>
@ -55,7 +55,6 @@ export function RoomMemberTileView(props: IProps): JSX.Element {
return (
<MemberTileView
title={vm.title}
onClick={vm.onClick}
avatarJsx={av}
presenceJsx={presenceJSX}

View File

@ -14,7 +14,6 @@ interface Props {
avatarJsx: JSX.Element;
nameJsx: JSX.Element | string;
onClick: () => void;
title?: string;
presenceJsx?: JSX.Element;
userLabel?: React.ReactNode;
iconJsx?: JSX.Element;
@ -34,7 +33,6 @@ export function MemberTileView(props: Props): JSX.Element {
className={classNames("mx_MemberTileView", {
mx_MemberTileView_hover: props.focused,
})}
title={props.title}
onClick={props.onClick}
tabIndex={-1}
>