Fix UnknownBody error message unalignment (#8346)

This commit is contained in:
Suguru Hirahara 2022-04-20 07:48:38 +00:00 committed by GitHub
parent 2fcf787578
commit a471742e97
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,12 +23,12 @@ interface IProps {
children?: React.ReactNode;
}
export default forwardRef(({ mxEvent, children }: IProps, ref: React.RefObject<HTMLSpanElement>) => {
export default forwardRef(({ mxEvent, children }: IProps, ref: React.RefObject<HTMLDivElement>) => {
const text = mxEvent.getContent().body;
return (
<span className="mx_UnknownBody" ref={ref}>
<div className="mx_UnknownBody" ref={ref}>
{ text }
{ children }
</span>
</div>
);
});