Fix space topic jumping on hover/focus (#12377)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
ddadbf64fe
commit
de154ffba9
1 changed files with 2 additions and 4 deletions
|
@ -36,7 +36,7 @@ interface IProps extends React.HTMLProps<HTMLDivElement> {
|
|||
room: Room;
|
||||
}
|
||||
|
||||
export default function RoomTopic({ room, ...props }: IProps): JSX.Element {
|
||||
export default function RoomTopic({ room, className, ...props }: IProps): JSX.Element {
|
||||
const client = useContext(MatrixClientContext);
|
||||
const ref = useRef<HTMLDivElement>(null);
|
||||
|
||||
|
@ -110,15 +110,13 @@ export default function RoomTopic({ room, ...props }: IProps): JSX.Element {
|
|||
}
|
||||
});
|
||||
|
||||
const className = classNames(props.className, "mx_RoomTopic");
|
||||
|
||||
return (
|
||||
<TooltipTarget
|
||||
{...props}
|
||||
ref={ref}
|
||||
onClick={onClick}
|
||||
dir="auto"
|
||||
tooltipTargetClassName={className}
|
||||
tooltipTargetClassName={classNames(className, "mx_RoomTopic")}
|
||||
label={_t("room|read_topic")}
|
||||
alignment={Alignment.Bottom}
|
||||
ignoreHover={ignoreHover}
|
||||
|
|
Loading…
Reference in a new issue