mirror of https://github.com/vector-im/riot-web
Fix space topic jumping on hover/focus (#12377)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>t3chguy/dedup-icons-17oct
parent
ddadbf64fe
commit
de154ffba9
|
@ -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 New Issue