mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 20:26:19 +02:00
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:
parent
b83a86532b
commit
e567d8039c
@ -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}
|
||||
|
||||
@ -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}
|
||||
>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user